directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1182902 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolUtils.java
Date Thu, 13 Oct 2011 15:22:50 GMT
Author: kayyagari
Date: Thu Oct 13 15:22:50 2011
New Revision: 1182902

URL: http://svn.apache.org/viewvc?rev=1182902&view=rev
Log:
o fixed the wrong copying of controls

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolUtils.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolUtils.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolUtils.java?rev=1182902&r1=1182901&r2=1182902&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolUtils.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolUtils.java
Thu Oct 13 15:22:50 2011
@@ -62,7 +62,7 @@ public class LdapProtocolUtils
     {
         if ( request.getControls() != null )
         {
-            request.addAllControls( request.getControls().values().toArray( LdapProtocolConstants.EMPTY_CONTROLS
) );
+            opContext.addRequestControls( request.getControls().values().toArray( LdapProtocolConstants.EMPTY_CONTROLS
) );
         }
     }
 
@@ -76,7 +76,7 @@ public class LdapProtocolUtils
      */
     public static void setResponseControls( OperationContext opContext, Response response
) throws Exception
     {
-        opContext.addRequestControls( opContext.getResponseControls() );
+        response.addAllControls( opContext.getResponseControls() );
     }
     
     



Mime
View raw message