directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r942758 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ControlValueAction.java
Date Mon, 10 May 2010 14:43:00 GMT
Author: elecharny
Date: Mon May 10 14:43:00 2010
New Revision: 942758

URL: http://svn.apache.org/viewvc?rev=942758&view=rev
Log:
Added the raw value into the Control in any case, to avoid side effects like the previous
value is seen.

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

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ControlValueAction.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ControlValueAction.java?rev=942758&r1=942757&r2=942758&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ControlValueAction.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ControlValueAction.java
Mon May 10 14:43:00 2010
@@ -71,12 +71,9 @@ public class ControlValueAction extends 
         }
         else
         {
-            if ( decoder == null )
-            {
-                // No decoder : store the raw value
-                control.setValue( value.getData() );
-            }
-            else
+            control.setValue( value.getData() );
+
+            if ( decoder != null )
             {
                 decoder.decode( value.getData(), control );
             }



Mime
View raw message