Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 1910 invoked from network); 2 Sep 2005 22:13:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Sep 2005 22:13:49 -0000 Received: (qmail 16924 invoked by uid 500); 2 Sep 2005 22:13:49 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 16871 invoked by uid 500); 2 Sep 2005 22:13:49 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 16858 invoked by uid 99); 2 Sep 2005 22:13:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2005 15:13:48 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 02 Sep 2005 15:14:03 -0700 Received: (qmail 1891 invoked by uid 65534); 2 Sep 2005 22:13:47 -0000 Message-ID: <20050902221347.1888.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r267335 - /directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java Date: Fri, 02 Sep 2005 22:13:47 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: elecharny Date: Fri Sep 2 15:13:42 2005 New Revision: 267335 URL: http://svn.apache.org/viewcvs?rev=267335&view=rev Log: Updated the branch to reflect the modifications in the trunk Modified: directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java Modified: directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java?rev=267335&r1=267334&r2=267335&view=diff ============================================================================== --- directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java (original) +++ directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java Fri Sep 2 15:13:42 2005 @@ -245,4 +245,21 @@ assertNotNull(e); } } + + + /** + * Tests to see if inner whitespace is preserved after an escaped ',' in + * a value of a name component. This test was added to try to reproduce + * the bug encountered in DIREVE-179 + * here. + * + * @throws NamingException if anything goes wrong on parse() + */ + public final void testPreserveSpaceAfterEscape() throws NamingException + { + DnParser parser = new DnParser(); + String input = "ou=some test\\, something else"; + String result = parser.parse( input ).toString(); + assertEquals( input, result ); + } } // end class DnParserTest