directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r924400 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java
Date Wed, 17 Mar 2010 18:16:21 GMT
Author: elecharny
Date: Wed Mar 17 18:16:20 2010
New Revision: 924400

URL: http://svn.apache.org/viewvc?rev=924400&view=rev
Log:
Fixed the wrong filter containing escaped #

Modified:
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java?rev=924400&r1=924399&r2=924400&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java
Wed Mar 17 18:16:20 2010
@@ -93,7 +93,7 @@ public class AddingEntriesWithSpecialCha
         personEntry.setDn( new DN( dn ) );
         connection.add( personEntry );
 
-        Cursor<SearchResponse> cursor = connection.search( "ou=system", "(cn=Kate\\#Bush)",
SearchScope.SUBTREE, "*" );
+        Cursor<SearchResponse> cursor = connection.search( "ou=system", "(cn=Kate#Bush)",
SearchScope.SUBTREE, "*" );
 
         boolean entryFound = false;
         while ( cursor.next() )
@@ -194,8 +194,9 @@ public class AddingEntriesWithSpecialCha
         entry.setDn( new DN( dn ) );
         connection.add( entry );
 
-        Cursor<SearchResponse> cursor = connection.search( "ou=system", "(ou=AC\\\\DC)",
SearchScope.SUBTREE, "*" );
+        Cursor<SearchResponse> cursor = connection.search( "ou=system", "(ou=AC\\5C\\5CDC)",
SearchScope.SUBTREE, "*" );
         boolean entryFound= false;
+        
         while ( cursor.next() )
         {
             Entry sr = ( ( SearchResultEntry ) cursor.get() ).getEntry();



Mime
View raw message