Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 24355 invoked from network); 16 Nov 2010 15:00:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 15:00:15 -0000 Received: (qmail 77756 invoked by uid 500); 16 Nov 2010 15:00:43 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 77302 invoked by uid 500); 16 Nov 2010 15:00:42 -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 76921 invoked by uid 99); 16 Nov 2010 15:00:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 15:00:41 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 15:00:39 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAGF0Ht2005927 for ; Tue, 16 Nov 2010 15:00:17 GMT Message-ID: <32265111.109911289919617269.JavaMail.jira@thor> Date: Tue, 16 Nov 2010 10:00:17 -0500 (EST) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-1581) attribute type with trailing space in the description prevents apacheds from restarting In-Reply-To: <27535000.97971289874073990.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932487#action_12932487 ] Emmanuel Lecharny commented on DIRSERVER-1581: ---------------------------------------------- The problem is not the injection of such an attribute. It's the way we deal with it when we read it again. For some unknown reason (atm) the DESC AT is read and initialized as if it was a binary AT, despite its syntax. Checking the LDIF reader now... > attribute type with trailing space in the description prevents apacheds from restarting > --------------------------------------------------------------------------------------- > > Key: DIRSERVER-1581 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1581 > Project: Directory ApacheDS > Issue Type: Bug > Components: core > Environment: Windows XP, JDK 1.6 > Reporter: Antoine Levy-Lambert > Assignee: Emmanuel Lecharny > > I had one attribute type with a trailing space in the description > attributetype ( 1.3.6.1.4.1.8104.1.1.37 NAME 'versionNumber' DESC > 'versionNumber ' EQUALITY caseIgnoreMatch SUBSTR > caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE) > using directory 1.5.7 this translates in the following ldif : > dn: m-oid=1.3.6.1.4.1.8104.1.1.37, ou=attributeTypes, cn=lea, ou=schema > objectclass: metaAttributeType > objectclass: metaTop > objectclass: top > m-oid: 1.3.6.1.4.1.8104.1.1.37 > m-name: versionNumber > m-description:: dmVyc2lvbk51bWJlciA= > m-equality: caseIgnoreMatch > m-substr: caseIgnoreSubstringsMatch > m-syntax: 1.3.6.1.4.1.1466.115.121.1.15 > m-length: 0 > m-singleValue: TRUE > I managed to get this LDIF imported into the directory server > Afterwards, I shutdown (hit Ctrl-C in fact) my directory server. > When restarting, I get the following exception : > [11:22:19] ERROR > [org.apache.directory.shared.ldap.entry.DefaultEntryAttribute] - > ERR_04131 The value is expected to be a String > org.apache.directory.shared.ldap.exception.LdapInvalidAttributeValueException: > ERR_04131 The value is expected to be a String > at org.apache.directory.shared.ldap.entry.DefaultEntryAttribute.getString(DefaultEntryAttribute.java:500) > at org.apache.directory.shared.ldap.schema.loader.ldif.SchemaEntityFactory.setSchemaObjectProperties(SchemaEntityFactory.java:1080) > at org.apache.directory.shared.ldap.schema.loader.ldif.SchemaEntityFactory.getAttributeType(SchemaEntityFactory.java:985) > at org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.addAttributeTypes(DefaultSchemaManager.java:731) > at org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.addSchemaObjects(DefaultSchemaManager.java:238) > at org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.load(DefaultSchemaManager.java:684) > at org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.loadDepsFirst(DefaultSchemaManager.java:1138) > at org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.loadWithDeps(DefaultSchemaManager.java:1037) > at org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.loadAllEnabled(DefaultSchemaManager.java:928) > at org.apache.directory.server.ApacheDsService.initSchemaLdifPartition(ApacheDsService.java:222) > at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:154) > at org.apache.directory.server.UberjarMain.main(UberjarMain.java:58) > [11:22:19] ERROR [org.apache.directory.server.UberjarMain] - Failed to > start the service. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.