]
Shane Bryzak reassigned JBSEAM-3349:
------------------------------------
Assignee: Shane Bryzak
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
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: