directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1065440 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/DefaultLdapCodecService.java
Date Mon, 31 Jan 2011 00:23:58 GMT
Author: elecharny
Date: Mon Jan 31 00:23:57 2011
New Revision: 1065440

URL: http://svn.apache.org/viewvc?rev=1065440&view=rev
Log:
The basic control decorator factory decorate() method was recreating a new control instead
of decorating the one we pass as an argument

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/DefaultLdapCodecService.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/DefaultLdapCodecService.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/DefaultLdapCodecService.java?rev=1065440&r1=1065439&r2=1065440&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/DefaultLdapCodecService.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/DefaultLdapCodecService.java
Mon Jan 31 00:23:57 2011
@@ -234,10 +234,7 @@ public class DefaultLdapCodecService imp
             
             if ( factory == null )
             {
-                org.apache.directory.shared.ldap.model.message.controls.BasicControl basic
= 
-                    new org.apache.directory.shared.ldap.model.message.controls.BasicControl(
control.getOid() );
-                basic.setCritical( control.isCritical() );
-                return new BasicControlDecorator( this, basic ); 
+                return new BasicControlDecorator( this, (BasicControl)control ); 
             }
             
             return factory.decorate( control );



Mime
View raw message