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