CLOUDSTACK-1702: Changed getId to getUuid in an exception message string. This doesn't resolve the bug in question, but does fix the specific message that was reported as the origin of the bug.
Signed-off-by: Chip Childers <chip.child...@gmail.com> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/eee720ce Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/eee720ce Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/eee720ce Branch: refs/heads/marvin-refactor Commit: eee720ceaa5339186bc7492f01c45a40aade3e75 Parents: f0a77d6 Author: Chip Childers <chip.child...@gmail.com> Authored: Sat Mar 16 15:04:19 2013 -0400 Committer: Chip Childers <chip.child...@gmail.com> Committed: Sat Mar 16 15:22:51 2013 -0400 ---------------------------------------------------------------------- server/src/com/cloud/network/NetworkModelImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/eee720ce/server/src/com/cloud/network/NetworkModelImpl.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/network/NetworkModelImpl.java b/server/src/com/cloud/network/NetworkModelImpl.java index 52089df..779b9f2 100644 --- a/server/src/com/cloud/network/NetworkModelImpl.java +++ b/server/src/com/cloud/network/NetworkModelImpl.java @@ -1457,11 +1457,11 @@ public class NetworkModelImpl extends ManagerBase implements NetworkModel { if (network.getGuestType() != Network.GuestType.Shared) { List<NetworkVO> networkMap = _networksDao.listBy(owner.getId(), network.getId()); if (networkMap == null || networkMap.isEmpty()) { - throw new PermissionDeniedException("Unable to use network with id= " + network.getId() + ", permission denied"); + throw new PermissionDeniedException("Unable to use network with id= " + network.getUuid() + ", permission denied"); } } else { if (!isNetworkAvailableInDomain(network.getId(), owner.getDomainId())) { - throw new PermissionDeniedException("Shared network id=" + network.getId() + " is not available in domain id=" + owner.getDomainId()); + throw new PermissionDeniedException("Shared network id=" + network.getUuid() + " is not available in domain id=" + owner.getDomainId()); } } }