You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2013/02/19 10:11:13 UTC

[jira] [Commented] (DIRSTUDIO-882) Cannot search for uniquemember with hashes in the member name

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13581142#comment-13581142 ] 

Emmanuel Lecharny commented on DIRSTUDIO-882:
---------------------------------------------

the '\' character in a filter is used to escape a character. If ou want to use it as a valid char, the you need to escape it, ie to replace it with the '\' HEX HEX sequence. In your case, '\' -> '\5C'
                
> Cannot search for uniquemember with hashes in the member name
> -------------------------------------------------------------
>
>                 Key: DIRSTUDIO-882
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-882
>             Project: Directory Studio
>          Issue Type: Bug
>          Components: studio-ldapbrowser
>    Affects Versions: 2.0.0-M5
>         Environment: Version: 2.0.0.v20130131
>            Reporter: Jürgen Weber
>
> I have a group tree, one group is exported to ldif like this:
> version: 1
> dn: cn=IS\#WIKIT,cn=Groups
> objectclass: top
> objectclass: groupOfUniqueNames
> cn: IS#WIKIT
> uniquemember: uid=\#263335,cn=User
> I stand in the tree on cn=Groups and want to quicksearch the above entry.
> (uniquemember=uid=#263335*)
> does not find anything.
> With a backslash, there is this error:
> Fehler während des Suchvorgangs
>  - The filter(uniquemember=uid=\\#263335*) is invalid.
> org.apache.directory.api.ldap.model.exception.LdapProtocolErrorException: The filter(uniquemember=uid=\\#263335*) is invalid.
> Fehler während des Suchvorgangs
>  - The filter(uniquemember=uid=\#263335*) is invalid.
> org.apache.directory.api.ldap.model.exception.LdapProtocolErrorException: The filter(uniquemember=uid=\#263335*) is invalid.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira