Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 81007 invoked from network); 12 Jan 2009 16:26:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2009 16:26:25 -0000 Received: (qmail 48744 invoked by uid 500); 12 Jan 2009 16:26:24 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 48701 invoked by uid 500); 12 Jan 2009 16:26:24 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 48692 invoked by uid 99); 12 Jan 2009 16:26:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 08:26:24 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 16:26:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6FA01234C498 for ; Mon, 12 Jan 2009 08:26:01 -0800 (PST) Message-ID: <2041818892.1231777561455.JavaMail.jira@brutus> Date: Mon, 12 Jan 2009 08:26:01 -0800 (PST) From: "Aleksander Adamowski (JIRA)" To: dev@directory.apache.org Subject: [jira] Reopened: (DIRSHARED-21) InvalidNameException for multi-component RDNs with more than 2 components In-Reply-To: <1549682332.1231772405393.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSHARED-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksander Adamowski reopened DIRSHARED-21: ------------------------------------------- This was just an anonymised example (note the example.com domain). The original attribute names don't contain anything except latin alphas (a-z). They are logged as OIDs, since apparently during that parsing stage they have already been resolved. So in fact the exception looks more like this: javax.naming.InvalidNameException: Bad DN : 1.2.3.4.5=0+1.2.3.4.6=0+1.2.3.4.7=omnischmomni,2.5.4.3=subtree,0.9.2342.19200300.100.1.25=example,0.9.2342.19200300.100.1.25=com at org.apache.directory.shared.ldap.name.LdapDnParser.parseInternal(LdapDnParser.java:170) at org.apache.directory.shared.ldap.name.LdapDnParser.parseInternal(LdapDnParser.java:112) > InvalidNameException for multi-component RDNs with more than 2 components > ------------------------------------------------------------------------- > > Key: DIRSHARED-21 > URL: https://issues.apache.org/jira/browse/DIRSHARED-21 > Project: Directory Shared > Issue Type: Bug > Affects Versions: 0.9.14 > Reporter: Aleksander Adamowski > > When I try to create a new object which has a multiple-value RDN, I onlt succeed when there are only 2 components in that RDN. with 3 components and more, I get the following exception: > javax.naming.InvalidNameException: Bad DN : SOME.OID.1=0+SOME.OID.2=0+SOME.OID.3=omnischmomni,2.5.4.3=subtree,0.9.2342.19200300.100.1.25=example,0.9.2342.19200300.100.1.25=com > at org.apache.directory.shared.ldap.name.LdapDnParser.parseInternal(LdapDnParser.java:170) > at org.apache.directory.shared.ldap.name.LdapDnParser.parseInternal(LdapDnParser.java:112) > at org.apache.directory.shared.ldap.name.LdapDN.(LdapDN.java:204) > at org.apache.directory.server.core.schema.SchemaService.isSchemaSubentry(SchemaService.java:122) > at org.apache.directory.server.core.changelog.ChangeLogInterceptor.getAttributes(ChangeLogInterceptor.java:193) > at org.apache.directory.server.core.changelog.ChangeLogInterceptor.delete(ChangeLogInterceptor.java:148) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.delete(InterceptorChain.java:1174) > at org.apache.directory.server.core.exception.ExceptionInterceptor.delete(ExceptionInterceptor.java:270) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.delete(InterceptorChain.java:1174) > at org.apache.directory.server.core.authz.DefaultAuthorizationInterceptor.delete(DefaultAuthorizationInterceptor.java:237) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.delete(InterceptorChain.java:1174) > at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.delete(AciAuthorizationInterceptor.java:520) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.delete(InterceptorChain.java:1174) > at org.apache.directory.server.core.referral.ReferralInterceptor.delete(ReferralInterceptor.java:285) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.delete(InterceptorChain.java:1174) > at org.apache.directory.server.core.authn.AuthenticationInterceptor.delete(AuthenticationInterceptor.java:224) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.delete(InterceptorChain.java:1174) > at org.apache.directory.server.core.normalization.NormalizationInterceptor.delete(NormalizationInterceptor.java:120) > at org.apache.directory.server.core.interceptor.InterceptorChain.delete(InterceptorChain.java:733) > at org.apache.directory.server.core.DefaultOperationManager.delete(DefaultOperationManager.java:419) > at org.apache.directory.server.core.DefaultCoreSession.delete(DefaultCoreSession.java:243) > at org.apache.directory.server.core.DefaultDirectoryService.revert(DefaultDirectoryService.java:753) > at org.apache.directory.server.core.DefaultDirectoryService.revert(DefaultDirectoryService.java:637) > I've double checked and this is not due to any mistake in the attribute name or anything like that - when I've used the 3rd RDN component on 2nd position, the object was created. > E.g. > RDN1 - works OK: > component1+component2 > RDN2 - exception thrown: > component1+component2+component3 > RDN3 - works OK: > component1+component3 > So the problem is not in RDN's component3 itself, but in the number of components. Reducing the number to 2 always helps and RDN gets accepted. > I'm using shared-ldap-0.9.14-SNAPSHOT. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.