This content has been marked as final.
Show 5 replies
-
1. Re: Seam-Security JPAIdentityStore membership
shane.bryzak May 2, 2011 5:56 PM (in response to maximilien)I thought this was working. I noticed that you raised a JIRA issue, and in it you said that you had looked into the Seam Security code and found the problem - where abouts is it? I should be able to take a look at this over the next few days.
-
2. Re: Seam-Security JPAIdentityStore membership
maximilien May 10, 2011 12:11 PM (in response to maximilien)hi Shane,
Sorry for the late reply i've workaround this by manually adding groups in my authenticator so i'm working on another part of my project.
The first problem i noticed is when picketlink call JpaIdentityStore.getRelationshipNames. the criteria doesn't filter relationships with null name so got a NPE when doing:
names.add((String) relationshipNameProperty.getValue(result));
I then look at HibernateIdentityStore and see that they are using a "%" restriction then i tried this :
Path<String> rolesOnly= root.get(relationshipNameProperty.getName());
predicates.add(builder.like(rolesOnly, "%"));
It removes the NPE but no membership is loaded and i got a log message
"18:05:00,853 INFO [STDOUT] *** Invoked unimplemented method findIdentityObject()"
Hope this helps,
Maximilien -
3. Re: Seam-Security JPAIdentityStore membership
maximilien May 10, 2011 12:19 PM (in response to maximilien)PS : The error is not a NPE but a
IllegalArgumentException: name cannot be null
when trying to create a role based on this list but it doesn't matter ;-) -
4. Re: Seam-Security JPAIdentityStore membership
shane.bryzak May 10, 2011 7:09 PM (in response to maximilien) -
5. Re: Seam-Security JPAIdentityStore membership
maximilien May 11, 2011 2:56 AM (in response to maximilien)ok i'll complete the jira