Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 1085 invoked from network); 21 Feb 2006 03:08:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Feb 2006 03:08:10 -0000 Received: (qmail 6967 invoked by uid 500); 21 Feb 2006 03:08:09 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 6910 invoked by uid 500); 21 Feb 2006 03:08:09 -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 6897 invoked by uid 99); 21 Feb 2006 03:08:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2006 19:08:09 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of aok123@bellsouth.net designates 205.152.59.70 as permitted sender) Received: from [205.152.59.70] (HELO imf22aec.mail.bellsouth.net) (205.152.59.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2006 19:08:08 -0800 Received: from ibm67aec.bellsouth.net ([65.80.200.112]) by imf22aec.mail.bellsouth.net with ESMTP id <20060221030747.UBJP20611.imf22aec.mail.bellsouth.net@ibm67aec.bellsouth.net> for ; Mon, 20 Feb 2006 22:07:47 -0500 Received: from [172.16.1.7] (really [65.80.200.112]) by ibm67aec.bellsouth.net with ESMTP id <20060221030747.CBSZ1775.ibm67aec.bellsouth.net@[172.16.1.7]> for ; Mon, 20 Feb 2006 22:07:47 -0500 Message-ID: <43FA8402.6000809@bellsouth.net> Date: Mon, 20 Feb 2006 22:07:46 -0500 From: Alex Karasulu User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@directory.apache.org Subject: [ApacheDS] New issues with name parser Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Emmanuel, I'm thinking some of the recent changes on the name parser may have introduced new problems. These are really weird problems. They happen only when running regression tests in maven within the server-unit module. Yeah crazy. Basically to reproduce run "mvn -Dregression test" inside the apacheds/server-main module. These are the tests that fail: $ mvn -Dregressions test [INFO] ---------------------------------------------------------------------------- [INFO] Building ApacheDS Server Unit .... T E S T S ------------------------------------------------------- .... [surefire] Running org.apache.directory.server.AddObjectClassesToEntryTest [surefire] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 0.113 sec <<<<<<<< FAILURE !! [surefire] Running org.apache.directory.server.MiscTest [surefire] Tests run: 7, Failures: 0, Errors: 7, Time elapsed: 0.177 sec <<<<<<<< FAILURE !! [surefire] Running org.apache.directory.server.MatchingRuleCompareTest [surefire] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 0.08 sec <<<<<<<< FAILURE !! Now when these tests run inside eclipse there is no problem. Here's what teh surefire report looks like for these failures. They are all pretty much the same trace: ======================================================================================================== o.a.d.shared.ldap.exception.LdapConfigurationException: Failed to normalize the suffix: ou=system [Root exception is o.a.d.shared.ldap.exception.LdapInvalidNameException: Parser failure on name: ou=system Antlr exception trace: line 1:1: unexpected token: ou at o.a.d.shared.ldap.name.antlrNameParser.attributeTypeAndValue(antlrNameParser.java:192) at o.a.d.shared.ldap.name.antlrNameParser.nameComponent(antlrNameParser.java:120) at o.a.d.shared.ldap.name.antlrNameParser.name(antlrNameParser.java:69) at o.a.d.shared.ldap.name.DnParser.parse(DnParser.java:208) at o.a.d.shared.ldap.name.LdapName.(LdapName.java:115) at o.a.d.server.core.configuration.DirectoryPartitionConfiguration.setSuffix(DirectoryPartitionConfiguration.java:203) ======================================================================================================== The suspect code is at o.a.d.server.core.configuration.DirectoryPartitionConfiguration.setSuffix(DirectoryPartitionConfiguration.java:203: /** * Sets the suffix of the {@link DirectoryPartition}. */ protected void setSuffix( String suffix ) throws NamingException { suffix = suffix.trim(); try 202: { 203: new LdapName( suffix ); <<<<<<<<================== HERE!!! 204: } catch ( NamingException e ) { throw new LdapConfigurationException( "Failed to normalize the suffix: " + suffix, e ); } this.suffix = suffix; } This is crazy though because how the heck is the parser failing on "ou=system" and succeeding on all test cases I cannot understand. I think I'm loosing my mind on this one this is why I need a second opinion. Please advise. Thanks, Alex