mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge release branch 4.9 to master
* 4.9: CLOUDSTACK-8805: Domains become inactive automatically. Handled the '%' case by replacing that with a literal character rather than a wildcard character.
This commit is contained in:
commit
122c27b338
@ -374,7 +374,7 @@ public class DomainManagerImpl extends ManagerBase implements DomainManager, Dom
|
|||||||
List<DomainVO> domains = _domainDao.search(sc, null);
|
List<DomainVO> domains = _domainDao.search(sc, null);
|
||||||
|
|
||||||
SearchCriteria<DomainVO> sc1 = _domainDao.createSearchCriteria();
|
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);
|
List<DomainVO> domainsToBeInactivated = _domainDao.search(sc1, null);
|
||||||
|
|
||||||
// update all subdomains to inactive so no accounts/users can be created
|
// update all subdomains to inactive so no accounts/users can be created
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user