cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [10/16] git commit: updated refs/heads/4.4 to 6b342ff
Date Fri, 25 Apr 2014 20:26:50 GMT
CLOUDSTACK-6458: IAM - When a domain is deleted , the group created for this domian is not
removed.

Changes:
- When domain is deleted, IAM service will not find it unless it selects using 'removed' column


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/0233bc88
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/0233bc88
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/0233bc88

Branch: refs/heads/4.4
Commit: 0233bc88ba08f03e0eb26105ab8b94c2800283ea
Parents: 3d072b0
Author: Prachi Damle <prachi@cloud.com>
Authored: Thu Apr 24 12:42:40 2014 -0700
Committer: Daan Hoogland <daan@onecht.net>
Committed: Fri Apr 25 21:57:41 2014 +0200

----------------------------------------------------------------------
 .../plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0233bc88/services/iam/plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java
----------------------------------------------------------------------
diff --git a/services/iam/plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java b/services/iam/plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java
index 77e588b..f9f76c1 100644
--- a/services/iam/plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java
+++ b/services/iam/plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java
@@ -243,7 +243,7 @@ public class IAMApiServiceImpl extends ManagerBase implements IAMApiService,
Man
                 Long domainId = ((Long) obj);
                 if (domainId != null) {
                     s_logger.debug("MessageBus message: Domain removed: " + domainId + ",
removing the domain group");
-                    Domain domain = _domainDao.findById(domainId);
+                    Domain domain = _domainDao.findByIdIncludingRemoved(domainId);
                     List<IAMGroup> groups = listDomainGroup(domain);
                     for (IAMGroup group : groups) {
                         _iamSrv.deleteIAMGroup(group.getId());


Mime
View raw message