[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3349) LDAPIdentityStore generates invalid filter on listUsers method

Jürgen Barski (JIRA) jira-events at lists.jboss.org
Thu Sep 17 07:42:23 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-3349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12486233#action_12486233 ] 

Jürgen Barski commented on JBSEAM-3349:
----------------------------------------


The method "listRoles" seems to have the same error.
Please can you fix it?!
Thanks!

> LDAPIdentityStore generates invalid filter on listUsers method
> --------------------------------------------------------------
>
>                 Key: JBSEAM-3349
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3349
>             Project: Seam
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 2.1.0.BETA1
>            Reporter: Vinicius Carvalho
>            Assignee: Shane Bryzak
>             Fix For: 2.1.0.CR1
>
>
> The Filter generated by the component is creating an invalid query, the format is this:
> (objectClass={0})(objectClass={1})
> Where it should be:
> (&(objectClass={0})(objectClass={1}))
> We've fixed it by overriding the method with our own ldapidentitystore, below is just the minimal chage:
> StringBuilder userFilter = new StringBuilder();
> 	         userFilter.append("(&");
> 	         Object[] filterArgs = new Object[getUserObjectClasses().length];
> 	         for (int i = 0; i < getUserObjectClasses().length; i++)
> 	         {
> 	            userFilter.append("(");
> 	            userFilter.append(getObjectClassAttribute());
> 	            userFilter.append("={");
> 	            userFilter.append(i);
> 	            userFilter.append("})");
> 	            filterArgs[i] = getUserObjectClasses()[i];
> 	         }            
> 	         userFilter.append(")");

-- 
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