Uploaded image for project: 'Directory Studio'
  1. Directory Studio
  2. DIRSTUDIO-589

InvalidNameException: unexpected token for user ids starting with hash sign

Watch issueLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.5.0
    • 1.5.1
    • studio-ldapbrowser
    • None
    • 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

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            seelmann Stefan Seelmann
            weberjn J├╝rgen Weber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment