Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 14635 invoked from network); 16 Nov 2010 14:27:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 14:27:19 -0000 Received: (qmail 24766 invoked by uid 500); 16 Nov 2010 14:27:51 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 24561 invoked by uid 500); 16 Nov 2010 14:27:50 -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 24554 invoked by uid 99); 16 Nov 2010 14:27:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 14:27:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antoine@gmx.de designates 213.165.64.22 as permitted sender) Received: from [213.165.64.22] (HELO mail.gmx.net) (213.165.64.22) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 16 Nov 2010 14:27:45 +0000 Received: (qmail invoked by alias); 16 Nov 2010 14:27:22 -0000 Received: from unknown (EHLO [192.168.94.151]) [38.100.172.138] by mail.gmx.net (mp002) with SMTP; 16 Nov 2010 15:27:22 +0100 X-Authenticated: #22961642 X-Provags-ID: V01U2FsdGVkX18dg7hAsbIdDxK48S5MlSVRtnnpk9X+YBsIY5etH1 ca6bNGSHJTuQo8 Message-ID: <4CE29530.5000305@gmx.de> Date: Tue, 16 Nov 2010 09:29:04 -0500 From: Antoine Levy-Lambert User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [jira] Created: (DIRSERVER-1581) attribute type with trailing space in the description prevents apacheds from restarting References: <27535000.97971289874073990.JavaMail.jira@thor> In-Reply-To: Content-Type: multipart/alternative; boundary="------------000802060001060300090104" X-Y-GMX-Trusted: 0 This is a multi-part message in MIME format. --------------000802060001060300090104 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Alex, the Apache Directory Studio schema editor reexports 'versionNumber ' as dmVyc2lvbk51bWJlciA= in LDIF. I read that there is a convention that strings with trailing spaces have to be encoded in LDIF. This LDIF has been imported into Apache DS 1.5.7 and the server was able to restart. So the persistent storage of this value might have been done incorrectly by Apache DS trunk. Regards, Antoine On 11/16/2010 7:47 AM, Alex Karasulu wrote: > This might be due to the attribute value being binary rather than > there being an extra trailing space. Lookie here: > > On Tue, Nov 16, 2010 at 4:21 AM, Antoine Levy-Lambert (JIRA) > > wrote: > > attribute type with trailing space in the description prevents > apacheds from restarting > --------------------------------------------------------------------------------------- > > Key: DIRSERVER-1581 > URL: > https://issues.apache.org/jira/browse/DIRSERVER-1581 > > ... > > 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 : > > m-description:: dmVyc2lvbk51bWJlciA= > > > Note the description field is being used as a binary attribute and > this is probably why the error occurred on startup. Something is > translating the description field into a binary value instead of a > directory string if that space is present from the LDAP representation > ==> ApacheDS LDIF format. > > Sorry would have put this in JIRA but my damn password is not working > ... have to reset. > -- > Alex Karasulu > My Blog :: http://www.jroller.com/akarasulu/ > Apache Directory Server :: http://directory.apache.org > Apache MINA :: http://mina.apache.org > To set up a meeting with me: http://tungle.me/AlexKarasulu --------------000802060001060300090104 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Alex,

the Apache Directory Studio schema editor reexports 'versionNumber ' as dmVyc2lvbk51bWJlciA= in LDIF. I read that there is a convention that strings with trailing spaces have to be encoded in LDIF. This LDIF has been imported into Apache DS 1.5.7 and the server was able to restart. So the persistent storage of this value might have been done incorrectly by Apache DS trunk.

Regards,

Antoine


On 11/16/2010 7:47 AM, Alex Karasulu wrote:
This might be due to the attribute value being binary rather than there being an extra trailing space. Lookie here:

On Tue, Nov 16, 2010 at 4:21 AM, Antoine Levy-Lambert (JIRA) <jira@apache.org> wrote:
attribute type with trailing space in the description prevents apacheds from restarting
---------------------------------------------------------------------------------------

                Key: DIRSERVER-1581
                URL: https://issues.apache.org/jira/browse/DIRSERVER-1581
... 
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 :
 
m-description:: dmVyc2lvbk51bWJlciA=


Note the description field is being used as a binary attribute and this is probably why the error occurred on startup. Something is translating the description field into a binary value instead of a directory string if that space is present from the LDAP representation ==> ApacheDS LDIF format.

Sorry would have put this in JIRA but my damn password is not working ... have to reset.
 
--
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org
To set up a meeting with me: http://tungle.me/AlexKarasulu

--------------000802060001060300090104--