From 16438f347031012260ef946fb5319c33ff675754 Mon Sep 17 00:00:00 2001 From: abhishek Date: Tue, 2 Nov 2010 13:43:03 -0700 Subject: [PATCH] we should not be ignoring case whilst updating account, reverting to .equals instead of .equalsIgnoreCase --- server/src/com/cloud/server/ManagementServerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/server/ManagementServerImpl.java b/server/src/com/cloud/server/ManagementServerImpl.java index 492929c15f3..1caced6b76e 100755 --- a/server/src/com/cloud/server/ManagementServerImpl.java +++ b/server/src/com/cloud/server/ManagementServerImpl.java @@ -1151,7 +1151,7 @@ public class ManagementServerImpl implements ManagementServer { throw new PermissionDeniedException("There already exists an account with the name:"+newAccountName+" in the domain:"+domainId+" with existing account id:"+duplicateAcccount.getId()); } - if (account.getAccountName().equalsIgnoreCase(newAccountName)) { + if (account.getAccountName().equals(newAccountName)) { success = true; } else { AccountVO acctForUpdate = _accountDao.createForUpdate();