directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r938390 - /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
Date Tue, 27 Apr 2010 10:12:29 GMT
Author: kayyagari
Date: Tue Apr 27 10:12:29 2010
New Revision: 938390

URL: http://svn.apache.org/viewvc?rev=938390&view=rev
Log:
fixed an issue with missing requested attributes while searching

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java?rev=938390&r1=938389&r2=938390&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
Tue Apr 27 10:12:29 2010
@@ -763,6 +763,14 @@ public class LdapCoreSessionConnection i
             iSearchReq.setTimeLimit( searchRequest.getTimeLimit() );
             iSearchReq.setTypesOnly( searchRequest.getTypesOnly() );
 
+            if( searchRequest.getAttributes() != null )
+            {
+                for( String at : searchRequest.getAttributes() )
+                {
+                    iSearchReq.addAttribute( at );
+                }
+            }
+
             EntryFilteringCursor entryCursor = session.search( iSearchReq );
             entryCursor.beforeFirst();
             return new EntryToResponseCursor<SearchResponse>( entryCursor );



Mime
View raw message