directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r596822 - /directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDnParser.java
Date Tue, 20 Nov 2007 20:53:16 GMT
Author: elecharny
Date: Tue Nov 20 12:53:15 2007
New Revision: 596822

URL: http://svn.apache.org/viewvc?rev=596822&view=rev
Log:
Slightly improved Felix fix : Instead of dumping bytes as if they were just bytes for a DN,
translating this byte array back to a String.
(the DN is always a valid byte array representation of a String )

Modified:
    directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDnParser.java

Modified: directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDnParser.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDnParser.java?rev=596822&r1=596821&r2=596822&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDnParser.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDnParser.java
Tue Nov 20 12:53:15 2007
@@ -20,7 +20,6 @@
 package org.apache.directory.shared.ldap.name;
 
 
-import java.util.Arrays;
 import java.util.List;
 
 import javax.naming.InvalidNameException;
@@ -151,7 +150,7 @@
 
                    if ( pos.start != dn.length )
                    {
-                       throw new InvalidNameException( "Bad DN : " + Arrays.toString( dn
) );
+                       throw new InvalidNameException( "Bad DN : " + StringTools.utf8ToString(
dn ) );
                    }
                    else
                    {
@@ -163,11 +162,11 @@
            }
            while ( RdnParser.parse( dn, pos, rdn ) != DNUtils.PARSING_ERROR );
            
-           throw new InvalidNameException( "Bad DN : " + Arrays.toString( dn ) );
+           throw new InvalidNameException( "Bad DN : " + StringTools.utf8ToString( dn ) );
        }
        else
        {
-           throw new InvalidNameException( "Bad DN : " + Arrays.toString( dn ) );
+           throw new InvalidNameException( "Bad DN : " + StringTools.utf8ToString( dn ) );
        }
    }
 



Mime
View raw message