[seam-issues] [JBoss JIRA] (SEAMSECURITY-143) org.jboss.seam.security.management.picketlink.JpaIdentityStore.removeRelationship() ignores a parameter 'relationshipName'
Aleftina Plotnikov (JIRA)
jira-events at lists.jboss.org
Thu Feb 2 06:36:50 EST 2012
Aleftina Plotnikov created SEAMSECURITY-143:
-----------------------------------------------
Summary: org.jboss.seam.security.management.picketlink.JpaIdentityStore.removeRelationship() ignores a parameter 'relationshipName'
Key: SEAMSECURITY-143
URL: https://issues.jboss.org/browse/SEAMSECURITY-143
Project: Seam Security
Issue Type: Bug
Affects Versions: 3.1.0.CR1
Environment: jboss-as-7.0.2.Final, jboss-as-7.1.0.CR1b
Reporter: Aleftina Plotnikov
Affected Version is actually 3.1.0.Final
When I do a call org.picketlink.idm.api.IdentitySession.getRoleManager().removeRole(role);
an exception "javax.persistence.NonUniqueResultException: result returns more than one elements" is thrown.
It happens when a user is having more than one role in database;
and the role name is the only difference, ie FROM_IDENTITY_ID, TO_IDENTITY_ID and RELATIONSHIP_TYPE_ID are the same;
in other words the User is playing more than one role in the same Group.
When debugging I found that a parameter 'relationshipName', role name in my case, is ignored in a method
org.jboss.seam.security.management.picketlink.JpaIdentityStore.removeRelationship(),
so it's not a part of JPA criteria.
Similar issue I found, but with a different version affected:
https://issues.jboss.org/browse/SEAMSECURITY-141
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list