directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DIRSTUDIO-589) InvalidNameException: unexpected token for user ids starting with hash sign
Date Tue, 17 Nov 2009 10:06:39 GMT

     [ https://issues.apache.org/jira/browse/DIRSTUDIO-589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny resolved DIRSTUDIO-589.
-----------------------------------------

    Resolution: Invalid

The filter grammar as defined in RFC 4515 does not accept \# :

filter         = '(' filtercomp ')'
filtercomp     = and / or / not / item
item           = simple / present / substring / extensible
simple         = attr filtertype assertionvalue
assertionvalue = valueencoding
valueencoding  = 0*(normal / escaped)
normal         = UTF1SUBSET / UTFMB
escaped        = ESC HEX HEX
UTF1SUBSET     = %x01-27 / %x2B-5B / %x5D-7F
                          ; UTF1SUBSET excludes 0x00 (NUL), LPAREN,
                          ; RPAREN, ASTERISK, and ESC.

Use (uid=#123456) or (uid=\23123456) in your case.

> InvalidNameException: unexpected token for user ids starting with hash sign
> ---------------------------------------------------------------------------
>
>                 Key: DIRSTUDIO-589
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-589
>             Project: Directory Studio
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>         Environment: z/OS LDAP Server
>            Reporter: J├╝rgen Weber
>            Priority: Critical
>
> In our LDAP server we have user ids starting with hash sign (e.g. #123456)
> On searching an existing user
> (uid=\#123456)
>  DS throws this exception. 
> The search works with Jarek Gawor's browser 2.8.2  I believe it also worked with DS 1.4
> !ENTRY org.apache.directory.studio.connection.core 4 4 2009-11-17 10:44:53.792
> !MESSAGE Error while performing search
>  - unexpected token: 123456
> !SUBENTRY 1 org.apache.directory.studio.connection.core 4 4 2009-11-17 10:44:53.792
> !MESSAGE javax.naming.InvalidNameException: unexpected token: 123456 [Root exception
is line 1:6: unexpected token: 123456]
> 	at org.apache.directory.shared.ldap.name.ComplexLdapDnParser.parseDn(ComplexLdapDnParser.java:55)
> 	at org.apache.directory.shared.ldap.name.LdapDnParser.parseInternal(LdapDnParser.java:97)
> 	at org.apache.directory.shared.ldap.name.LdapDN.<init>(LdapDN.java:205)
> 	at org.apache.directory.studio.ldapbrowser.core.utils.JNDIUtils.getDn(JNDIUtils.java:48)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.searchAndUpdateModel(SearchRunnable.java:331)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.run(SearchRunnable.java:184)
> 	at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:114)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: line 1:6: unexpected token: 123456
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.special(AntlrDnParser.java:1219)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.pair(AntlrDnParser.java:932)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.string(AntlrDnParser.java:777)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.attributeValue(AntlrDnParser.java:517)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.attributeTypeAndValue(AntlrDnParser.java:405)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.relativeDistinguishedName(AntlrDnParser.java:229)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.relativeDistinguishedNames(AntlrDnParser.java:307)
> 	at org.apache.directory.shared.ldap.name.ComplexLdapDnParser.parseDn(ComplexLdapDnParser.java:51)
> 	... 7 more
> !STACK 0
> javax.naming.InvalidNameException: unexpected token: 123456 [Root exception is line 1:6:
unexpected token: 123456]
> 	at org.apache.directory.shared.ldap.name.ComplexLdapDnParser.parseDn(ComplexLdapDnParser.java:55)
> 	at org.apache.directory.shared.ldap.name.LdapDnParser.parseInternal(LdapDnParser.java:97)
> 	at org.apache.directory.shared.ldap.name.LdapDN.<init>(LdapDN.java:205)
> 	at org.apache.directory.studio.ldapbrowser.core.utils.JNDIUtils.getDn(JNDIUtils.java:48)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.searchAndUpdateModel(SearchRunnable.java:331)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.run(SearchRunnable.java:184)
> 	at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:114)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: line 1:6: unexpected token: 123456
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.special(AntlrDnParser.java:1219)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.pair(AntlrDnParser.java:932)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.string(AntlrDnParser.java:777)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.attributeValue(AntlrDnParser.java:517)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.attributeTypeAndValue(AntlrDnParser.java:405)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.relativeDistinguishedName(AntlrDnParser.java:229)
> 	at org.apache.directory.shared.ldap.name.AntlrDnParser.relativeDistinguishedNames(AntlrDnParser.java:307)
> 	at org.apache.directory.shared.ldap.name.ComplexLdapDnParser.parseDn(ComplexLdapDnParser.java:51)
> 	... 7 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message