[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-4424) Current identity store incorrectly detected by JpaPermissionStore if identity store extends JpaIdentityStoreClass
Alexander Galanin (JIRA)
jira-events at lists.jboss.org
Fri Sep 25 08:21:49 EDT 2009
Current identity store incorrectly detected by JpaPermissionStore if identity store extends JpaIdentityStoreClass
-----------------------------------------------------------------------------------------------------------------
Key: JBSEAM-4424
URL: https://jira.jboss.org/jira/browse/JBSEAM-4424
Project: Seam
Issue Type: Bug
Components: Security
Affects Versions: 2.2.0.GA
Reporter: Alexander Galanin
Priority: Minor
Current identity store incorrectly detected by JpaPermissionStore if identity store extends JpaIdentityStoreClass.
The following line in function resolvePrincipalEntity() (class JpaPermissionStore) is incorrect in my case:
JpaIdentityStore identityStore = (JpaIdentityStore) Component.getInstance(JpaIdentityStore.class, true);
Should be (copy-pasted from resolvePrincipal())
IdentityStore ids = IdentityManager.instance().getRoleIdentityStore();
JpaIdentityStore identityStore = null;
if (ids instanceof JpaIdentityStore) {
identityStore = (JpaIdentityStore) ids;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list