Author: bdaw
Date: 2010-08-10 14:14:09 -0400 (Tue, 10 Aug 2010)
New Revision: 369
Modified:
idm/branches/1.1.0/picketlink-idm-hibernate/src/main/java/org/picketlink/idm/impl/store/hibernate/HibernateIdentityStoreImpl.java
Log:
- check if result of database search was case sensitive or not
Modified:
idm/branches/1.1.0/picketlink-idm-hibernate/src/main/java/org/picketlink/idm/impl/store/hibernate/HibernateIdentityStoreImpl.java
===================================================================
---
idm/branches/1.1.0/picketlink-idm-hibernate/src/main/java/org/picketlink/idm/impl/store/hibernate/HibernateIdentityStoreImpl.java 2010-08-10
16:18:35 UTC (rev 368)
+++
idm/branches/1.1.0/picketlink-idm-hibernate/src/main/java/org/picketlink/idm/impl/store/hibernate/HibernateIdentityStoreImpl.java 2010-08-10
18:14:09 UTC (rev 369)
@@ -671,7 +671,14 @@
throw new IdentityException("Cannot find IdentityObject with name
'" + name + "' and type '" + type.getName() +
"'", e);
}
- return hibernateObject;
+ // Check result with case sensitive compare:
+ if (hibernateObject != null && hibernateObject.getName().equals(name))
+ {
+
+ return hibernateObject;
+
+ }
+ return null;
}
public IdentityObject findIdentityObject(IdentityStoreInvocationContext ctx, String
id) throws IdentityException