mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Merge pull request #775 from nitin-maharana/CloudStack-Nitin
CLOUDSTACK-8805: Domains become inactive automatically.Handled the '%' case by replacing that with a literal character rather than a wildcard character. * pr/775: CLOUDSTACK-8805: Domains become inactive automatically. Handled the '%' case by replacing that with a literal character rather than a wildcard character. Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
This commit is contained in:
commit
c3aff8e3ed
@ -373,7 +373,7 @@ public class DomainManagerImpl extends ManagerBase implements DomainManager, Dom
|
||||
List<DomainVO> domains = _domainDao.search(sc, null);
|
||||
|
||||
SearchCriteria<DomainVO> sc1 = _domainDao.createSearchCriteria();
|
||||
sc1.addAnd("path", SearchCriteria.Op.LIKE, "%" + domainHandle.getPath() + "%");
|
||||
sc1.addAnd("path", SearchCriteria.Op.LIKE, "%" + "replace(" + domainHandle.getPath() + ", '%', '[%]')" + "%");
|
||||
List<DomainVO> domainsToBeInactivated = _domainDao.search(sc1, null);
|
||||
|
||||
// update all subdomains to inactive so no accounts/users can be created
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user