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

Error browsing/entering rfc2307 compliant host entry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2
    • None
    • Ubuntu 9.04
      java version 1.6.0_0

    Description

      A rfc2307 entry is as follows:

      dn: cn=loopback+ipHostNumber=127.0.0.1,ou=Hosts,dc=mygfs,dc=com
      objectClass: ipHost
      objectClass: device
      objectClass: top
      cn: loopback
      ipHostNumber: 127.0.0.1

      When I browse this group I receive the following error:

      'Read Children' has encountered a problem.

      Error while reading entry

      • unexpected token: 127.0.0.1
        javax.naming.InvalidNameException: unexpected token: 127.0.0.1 [Root exception is line 1:26: unexpected token: 127.0.0.1]
        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.InitializeChildrenRunnable.executeSearch(InitializeChildrenRunnable.java:361)
        at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.initializeChildren(InitializeChildrenRunnable.java:212)
        at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.run(InitializeChildrenRunnable.java:171)
        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:26: unexpected token: 127.0.0.1
        at org.apache.directory.shared.ldap.name.AntlrDnParser.attributeValue(AntlrDnParser.java:550)
        at org.apache.directory.shared.ldap.name.AntlrDnParser.attributeTypeAndValue(AntlrDnParser.java:405)
        at org.apache.directory.shared.ldap.name.AntlrDnParser.relativeDistinguishedName(AntlrDnParser.java:252)
        at org.apache.directory.shared.ldap.name.AntlrDnParser.relativeDistinguishedNames(AntlrDnParser.java:307)
        at org.apache.directory.shared.ldap.name.ComplexLdapDnParser.parseDn(ComplexLdapDnParser.java:51)
        ... 9 more

      unexpected token: 127.0.0.1

      When I use the "new entry from scratch" wizard I receive an "invalid RDN" during data entry. First I select the three object classes from above. I then add the cn= entry. I then start entering the ipHostNumber and if the host number ends in ".[0-9]" the preview says "RDN is invalid". If I end the ipHostNumber with a "." or ".[a-zA-Z]" the RDN is accepted and the entry created. The entries that are created in this manner are viewable in the browser.

      Attachments

        Activity

          People

            seelmann Stefan Seelmann
            jonbcraig Jonathan Craig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: