directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r718284 - /directory/apacheds/branches/apacheds-mina2/core/src/main/java/org/apache/directory/server/core/normalization/NormalizingVisitor.java
Date Mon, 17 Nov 2008 17:41:46 GMT
Author: elecharny
Date: Mon Nov 17 09:41:45 2008
New Revision: 718284

URL: http://svn.apache.org/viewvc?rev=718284&view=rev
Log:
Merged one of Stefan Seelman's fix  from trunk.

Modified:
    directory/apacheds/branches/apacheds-mina2/core/src/main/java/org/apache/directory/server/core/normalization/NormalizingVisitor.java

Modified: directory/apacheds/branches/apacheds-mina2/core/src/main/java/org/apache/directory/server/core/normalization/NormalizingVisitor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-mina2/core/src/main/java/org/apache/directory/server/core/normalization/NormalizingVisitor.java?rev=718284&r1=718283&r2=718284&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-mina2/core/src/main/java/org/apache/directory/server/core/normalization/NormalizingVisitor.java
(original)
+++ directory/apacheds/branches/apacheds-mina2/core/src/main/java/org/apache/directory/server/core/normalization/NormalizingVisitor.java
Mon Nov 17 09:41:45 2008
@@ -179,7 +179,13 @@
         if ( escaped )
         {
             // We should not have a '\' at the end of the string
-            throw new InvalidNameException( "The value must not ends with a '\\'." );
+            //throw new InvalidNameException( "The value must not ends with a '\\'." );
+            
+            // TODO: We have a weird behaviour:
+            // - If a request (cn=\5C) comes over the wire the '\5C' is already decoded to
a '\'.
+            // - If we use the embedded LdapContext it is not decoded here.
+            // This is just a hack to make it working.
+            buf.append( '\\' );
         }
 
         return buf.toString();



Mime
View raw message