From e73a23e8c0717e90764f2177458e92b19de79983 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Wed, 14 Mar 2012 13:30:03 -0700 Subject: [PATCH] bug 14271: return only domainId in error message when caller is not authorized to operate within the domain status 14271: resolved fixed --- server/src/com/cloud/acl/DomainChecker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/acl/DomainChecker.java b/server/src/com/cloud/acl/DomainChecker.java index 7a605e595d9..a844e8c15f9 100755 --- a/server/src/com/cloud/acl/DomainChecker.java +++ b/server/src/com/cloud/acl/DomainChecker.java @@ -63,10 +63,10 @@ public class DomainChecker extends AdapterBase implements SecurityChecker { if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL) { if (caller.getDomainId() != domainId) { - throw new PermissionDeniedException(caller + " does not have permission to operate within " + domain); + throw new PermissionDeniedException(caller + " does not have permission to operate within domain id=" + domain.getId()); } } else if (!_domainDao.isChildDomain(caller.getDomainId(), domainId)) { - throw new PermissionDeniedException(caller + " does not have permission to operate within " + domain); + throw new PermissionDeniedException(caller + " does not have permission to operate within domain id=" + domain.getId()); } return true;