directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1241444 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/AttributeUtils.java
Date Tue, 07 Feb 2012 12:32:14 GMT
Author: pamarcelot
Date: Tue Feb  7 12:32:14 2012
New Revision: 1241444

URL: http://svn.apache.org/viewvc?rev=1241444&view=rev
Log:
Fix for DIRAPI-79 (Normalized attribute name (lowercased) used when converting entries from
API to JNDI).

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/AttributeUtils.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/AttributeUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/AttributeUtils.java?rev=1241444&r1=1241443&r2=1241444&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/AttributeUtils.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/AttributeUtils.java
Tue Feb  7 12:32:14 2012
@@ -361,7 +361,7 @@ public final class AttributeUtils
     public static void applyModification( Entry entry, Modification modification ) throws
LdapException
     {
         Attribute modAttr = modification.getAttribute();
-        String modificationId = modAttr.getId();
+        String modificationId = modAttr.getUpId();
 
         switch ( modification.getOperation() )
         {
@@ -418,7 +418,7 @@ public final class AttributeUtils
                     if ( modifiedAttr.size() == 0 )
                     {
                         // If this was the last value, remove the attribute
-                        entry.removeAttributes( modifiedAttr.getId() );
+                        entry.removeAttributes( modifiedAttr.getUpId() );
                     }
                 }
 
@@ -527,7 +527,7 @@ public final class AttributeUtils
     {
         if ( attribute != null )
         {
-            javax.naming.directory.Attribute jndiAttribute = new BasicAttribute( attribute.getId()
);
+            javax.naming.directory.Attribute jndiAttribute = new BasicAttribute( attribute.getUpId()
);
 
             // Looping on values
             for ( Iterator<Value<?>> valueIterator = attribute.iterator(); valueIterator.hasNext();
)



Mime
View raw message