Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-603

Error browsing/entering rfc2307 compliant host entry

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2
    • Labels:
      None
    • Environment:
      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.

        Activity

        Hide
        Stefan Seelmann added a comment -

        This is a problem with the new DN parser, it detects a "Numeric OID" token which is not included as valid value.

        Show
        Stefan Seelmann added a comment - This is a problem with the new DN parser, it detects a "Numeric OID" token which is not included as valid value.
        Show
        Stefan Seelmann added a comment - Fixed with DIRSHARED-41 . http://svn.apache.org/viewvc?rev=887710&view=rev http://svn.apache.org/viewvc?rev=887711&view=rev Use fixed shared-ldap version: http://svn.apache.org/viewvc?rev=887716&view=rev Added additional UI tests: http://svn.apache.org/viewvc?rev=887714&view=rev http://svn.apache.org/viewvc?rev=887715&view=rev
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Version 1.5.2 has been released.
        Let's close this issue.

        Show
        Pierre-Arnaud Marcelot added a comment - Version 1.5.2 has been released. Let's close this issue.

          People

          • Assignee:
            Stefan Seelmann
            Reporter:
            Jonathan Craig
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development