directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r231032 - /directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/LockableAttributesImpl.java
Date Tue, 09 Aug 2005 13:17:50 GMT
Author: akarasulu
Date: Tue Aug  9 06:17:47 2005
New Revision: 231032

URL: http://svn.apache.org/viewcvs?rev=231032&view=rev
Log:
I accidentally removed the line that maps attribute identifiers to their lower
cased normalized names.  This caused lookups for things like objectClass 
attributes to fail hence resulting in failures all over.  I fixed the problem
by adding the line back.

Modified:
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/LockableAttributesImpl.java

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/LockableAttributesImpl.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/LockableAttributesImpl.java?rev=231032&r1=231031&r2=231032&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/LockableAttributesImpl.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/LockableAttributesImpl.java
Tue Aug  9 06:17:47 2005
@@ -204,6 +204,12 @@
     public Attribute put( String attrId, Object val )
     {
         super.lockCheck( "Attempt to add value to locked Attributes" );
+
+        if ( get( attrId ) == null )
+        {
+            setUserProvidedId( attrId );
+        }
+
         Attribute attr = new LockableAttributeImpl( this, attrId );
         attr.add( val );
         map.put( attrId, attr );



Mime
View raw message