directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1601223 - /directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Date Sun, 08 Jun 2014 14:04:46 GMT
Author: seelmann
Date: Sun Jun  8 14:04:46 2014
New Revision: 1601223

URL: http://svn.apache.org/r1601223
Log:
DIRSTUDIO-836: allow underscore in search filter

Modified:
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java?rev=1601223&r1=1601222&r2=1601223&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Sun Jun  8 14:04:46 2014
@@ -50,6 +50,8 @@ import org.apache.directory.api.ldap.mod
 import org.apache.directory.api.ldap.model.entry.Modification;
 import org.apache.directory.api.ldap.model.entry.ModificationOperation;
 import org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException;
+import org.apache.directory.api.ldap.model.filter.ExprNode;
+import org.apache.directory.api.ldap.model.filter.FilterParser;
 import org.apache.directory.api.ldap.model.message.AddRequest;
 import org.apache.directory.api.ldap.model.message.AddRequestImpl;
 import org.apache.directory.api.ldap.model.message.AddResponse;
@@ -527,7 +529,8 @@ public class DirectoryApiConnectionWrapp
                     // Preparing the search request
                     SearchRequest request = new SearchRequestImpl();
                     request.setBase( new Dn( searchBase ) );
-                    request.setFilter( filter );
+                    ExprNode node = FilterParser.parse( filter, true );
+                    request.setFilter( node );
                     request.setScope( convertSearchScope( searchControls ) );
                     if ( searchControls.getReturningAttributes() != null )
                     {



Mime
View raw message