directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r267367 - in /directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder: add/AddAttributeValueRule.java compare/CompareAVARule.java modify/ModifyRequestAttributeValueRule.java
Date Sat, 03 Sep 2005 01:13:30 GMT
Author: elecharny
Date: Fri Sep  2 18:13:22 2005
New Revision: 267367

URL: http://svn.apache.org/viewcvs?rev=267367&view=rev
Log:
As we must store byte[] instead on String in attribute values, changed the code accordingly

Modified:
    directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/add/AddAttributeValueRule.java
    directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/compare/CompareAVARule.java
    directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/modify/ModifyRequestAttributeValueRule.java

Modified: directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/add/AddAttributeValueRule.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/add/AddAttributeValueRule.java?rev=267367&r1=267366&r2=267367&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/add/AddAttributeValueRule.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/add/AddAttributeValueRule.java
Fri Sep  2 18:13:22 2005
@@ -92,7 +92,7 @@
             attrs.put( attr );
         }
 
-        attr.add( new String( octets ) ) ;
+        attr.add( octets ) ;
 
         // clean up
         setConstructed( false ) ;

Modified: directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/compare/CompareAVARule.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/compare/CompareAVARule.java?rev=267367&r1=267366&r2=267367&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/compare/CompareAVARule.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/compare/CompareAVARule.java
Fri Sep  2 18:13:22 2005
@@ -74,7 +74,7 @@
         }
         else
         {
-            req.setAssertionValue( new String( octets ) ) ;
+            req.setAssertionValue( octets ) ;
         }
     }
 }

Modified: directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/modify/ModifyRequestAttributeValueRule.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/modify/ModifyRequestAttributeValueRule.java?rev=267367&r1=267366&r2=267367&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/modify/ModifyRequestAttributeValueRule.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/decoder/modify/ModifyRequestAttributeValueRule.java
Fri Sep  2 18:13:22 2005
@@ -79,7 +79,8 @@
         }
 
         // Add the attribute
-        mods.getAttribute().add( new String( octets ) ) ;
+        // It is not supposed to be a String...
+        mods.getAttribute().add( octets ) ;
 
         // clean up
         setConstructed( false ) ;



Mime
View raw message