[
https://issues.apache.org/jira/browse/DIRSTUDIO-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre-Arnaud Marcelot updated DIRSTUDIO-603:
---------------------------------------------
Component/s: studio-ldapbrowser
> Error browsing/entering rfc2307 compliant host entry
> ----------------------------------------------------
>
> Key: DIRSTUDIO-603
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-603
> Project: Directory Studio
> Issue Type: Bug
> Components: studio-ldapbrowser, studio-ldifeditor
> Affects Versions: 1.5.1
> Environment: Ubuntu 9.04
> java version 1.6.0_0
> Reporter: Jonathan Craig
> Assignee: Stefan Seelmann
> Fix For: 1.5.2
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.