Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-589

InvalidNameException: unexpected token for user ids starting with hash sign

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.1
    • Component/s: studio-ldapbrowser
    • Labels:
      None
    • Environment:
      z/OS LDAP Server

      Description

      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

      1. DIRSTUDIO-589.patch
        3 kB
        Stefan Seelmann

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Stefan Seelmann
              Reporter:
              Jürgen Weber
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development