bugCS-15741

InterVlan - User VM's ID should not be revealed in the Error message displayed to the Regular User Account - Error during Static NAT Rule creation.
Description:
	Use the UUID to replace the vmId in the exception message.
This commit is contained in:
Fang Wang 2012-08-10 19:53:13 -07:00
parent e866122ff8
commit 90d0871131
1 changed files with 2 additions and 1 deletions

View File

@ -545,8 +545,9 @@ public class RulesManagerImpl implements RulesManager, RulesService, Manager {
List<IdentityProxy> idList = new ArrayList<IdentityProxy>();
idList.add(new IdentityProxy(ipAddress, ipAddress.getId(), "ipId"));
idList.add(new IdentityProxy(oldIP, oldIP.getId(), "oldipId"));
idList.add(new IdentityProxy("vm_instance", vmId, "vmId"));
throw new InvalidParameterValueException("Failed to enable static nat for the ip address with specified ipId" +
" as vm with id: " + vmId + " is already associated with ip with specified oldipId", idList);
" as vm with specified vmId is already associated with ip with specified oldipId", idList);
}
// unassign old static nat rule
s_logger.debug("Disassociating static nat for ip " + oldIP);