You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2005/08/13 09:11:00 UTC

svn commit: r232433 - in /directory: apacheds/trunk/core/src/main/java/org/apache/ldap/server/configuration/ apacheds/trunk/core/src/main/java/org/apache/ldap/server/operational/ apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/ apach...

Author: akarasulu
Date: Sat Aug 13 00:10:37 2005
New Revision: 232433

URL: http://svn.apache.org/viewcvs?rev=232433&view=rev
Log:
changed all incorrect usages of BasicAttributes so they use the case insensitive
form for attribute IDs with a new BasicAttributes(true) or a 
new BasicAttributes(String, Object, boolean).  This was done to progress on 
JIRA issue DIREVE-224 here:
   http://issues.apache.org/jira/browse/DIREVE-224

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/configuration/ContextPartitionConfiguration.java
    directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/operational/OperationalAttributeService.java
    directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/DefaultContextPartitionNexus.java
    directory/apacheds/trunk/core/src/test/org/apache/ldap/server/configuration/ContextPartitionConfigurationTest.java
    directory/apacheds/trunk/core/src/test/org/apache/ldap/server/exception/ExceptionServiceTest.java
    directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/CreateContextTest.java
    directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/DestroyContextTest.java
    directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ExtensibleObjectTest.java
    directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ModifyContextTest.java
    directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/SearchContextTest.java
    directory/apacheds/trunk/core/src/test/org/apache/ldap/server/operational/BinaryAttributeFilterTest.java
    directory/apacheds/trunk/core/src/test/org/apache/ldap/server/operational/OperationalAttributeServiceTest.java
    directory/apacheds/trunk/main/src/test/org/apache/ldap/server/AddObjectClassesToEntryTest.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/ldif/LdifEntry.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/configuration/ContextPartitionConfiguration.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/configuration/ContextPartitionConfiguration.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/configuration/ContextPartitionConfiguration.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/configuration/ContextPartitionConfiguration.java Sat Aug 13 00:10:37 2005
@@ -49,7 +49,7 @@
     private String name;
     private String suffix;
     private Set indexedAttributes = new HashSet(); // Set<String>
-    private Attributes contextEntry = new BasicAttributes();
+    private Attributes contextEntry = new BasicAttributes( true );
     private ContextPartition contextPartition = new JdbmContextPartition();
     
     /**

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/operational/OperationalAttributeService.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/operational/OperationalAttributeService.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/operational/OperationalAttributeService.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/operational/OperationalAttributeService.java Sat Aug 13 00:10:37 2005
@@ -128,7 +128,7 @@
         nextInterceptor.modify( name, modOp, attrs );
         
         // add operational attributes after call in case the operation fails
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         BasicAttribute attribute = new BasicAttribute( "modifiersName" );
         attribute.add( getPrincipal().getName() );
         attributes.put( attribute );
@@ -146,7 +146,7 @@
         nextInterceptor.modify( name, items );
 
         // add operational attributes after call in case the operation fails
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         BasicAttribute attribute = new BasicAttribute( "modifiersName" );
         attribute.add( getPrincipal().getName() );
         attributes.put( attribute );
@@ -164,7 +164,7 @@
         nextInterceptor.modifyRn( name, newRn, deleteOldRn );
         
         // add operational attributes after call in case the operation fails
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         BasicAttribute attribute = new BasicAttribute( "modifiersName" );
         attribute.add( getPrincipal().getName() );
         attributes.put( attribute );
@@ -183,7 +183,7 @@
         nextInterceptor.move( name, newParentName );
 
         // add operational attributes after call in case the operation fails
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         BasicAttribute attribute = new BasicAttribute( "modifiersName" );
         attribute.add( getPrincipal().getName() );
         attributes.put( attribute );
@@ -201,7 +201,7 @@
         nextInterceptor.move( name, newParentName, newRn, deleteOldRn );
 
         // add operational attributes after call in case the operation fails
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         BasicAttribute attribute = new BasicAttribute( "modifiersName" );
         attribute.add( getPrincipal().getName() );
         attributes.put( attribute );

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/DefaultContextPartitionNexus.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/DefaultContextPartitionNexus.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/DefaultContextPartitionNexus.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/DefaultContextPartitionNexus.java Sat Aug 13 00:10:37 2005
@@ -209,7 +209,7 @@
         systemCfg.setIndexedAttributes( indexedSystemAttrs );
         
         // Add context entry for system partition
-        Attributes systemEntry = new BasicAttributes();
+        Attributes systemEntry = new BasicAttributes( true );
         Attribute objectClassAttr = new BasicAttribute( "objectClass" );
         objectClassAttr.add( "top" );
         objectClassAttr.add( "organizationalUnit" );

Modified: directory/apacheds/trunk/core/src/test/org/apache/ldap/server/configuration/ContextPartitionConfigurationTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/configuration/ContextPartitionConfigurationTest.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/org/apache/ldap/server/configuration/ContextPartitionConfigurationTest.java (original)
+++ directory/apacheds/trunk/core/src/test/org/apache/ldap/server/configuration/ContextPartitionConfigurationTest.java Sat Aug 13 00:10:37 2005
@@ -51,7 +51,7 @@
             new MutableContextPartitionConfiguration();
         partitionCfg.setName( "removable" );
         partitionCfg.setSuffix( "ou=removable" );
-        Attributes ctxEntry = new BasicAttributes();
+        Attributes ctxEntry = new BasicAttributes( true );
         ctxEntry.put( "objectClass", "top" );
         ctxEntry.put( "ou", "removable" );
         partitionCfg.setContextEntry( ctxEntry );

Modified: directory/apacheds/trunk/core/src/test/org/apache/ldap/server/exception/ExceptionServiceTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/exception/ExceptionServiceTest.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/org/apache/ldap/server/exception/ExceptionServiceTest.java (original)
+++ directory/apacheds/trunk/core/src/test/org/apache/ldap/server/exception/ExceptionServiceTest.java Sat Aug 13 00:10:37 2005
@@ -252,7 +252,7 @@
      */
     public void testFailModifyNoSuchObject() throws NamingException
     {
-        Attributes attrs = new BasicAttributes();
+        Attributes attrs = new BasicAttributes( true );
         Attribute ou = new BasicAttribute( "ou" );
         ou.add( "users" );
         ou.add( "dummyValue" );
@@ -293,7 +293,7 @@
      */
     public void testModifyControl() throws NamingException
     {
-        Attributes attrs = new BasicAttributes();
+        Attributes attrs = new BasicAttributes( true );
         Attribute attr = new BasicAttribute( "ou" );
         attr.add( "users" );
         attr.add( "dummyValue" );
@@ -402,7 +402,7 @@
      */
     public void testFailAddOnAlias() throws NamingException
     {
-        Attributes attrs = new BasicAttributes();
+        Attributes attrs = new BasicAttributes( true );
         Attribute attr = new BasicAttribute( "objectClass" );
         attr.add( "top" );
         attr.add( "alias" );

Modified: directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/CreateContextTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/CreateContextTest.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/CreateContextTest.java (original)
+++ directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/CreateContextTest.java Sat Aug 13 00:10:37 2005
@@ -46,7 +46,7 @@
         /*
          * create ou=testing00,ou=system
          */
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         Attribute attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );
@@ -69,7 +69,7 @@
         /*
          * create ou=testing01,ou=system
          */
-        attributes = new BasicAttributes();
+        attributes = new BasicAttributes( true );
         attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );
@@ -92,7 +92,7 @@
         /*
          * create ou=testing02,ou=system
          */
-        attributes = new BasicAttributes();
+        attributes = new BasicAttributes( true );
         attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );
@@ -117,7 +117,7 @@
          */
         ctx = ( DirContext ) sysRoot.lookup( "ou=testing01" );
 
-        attributes = new BasicAttributes();
+        attributes = new BasicAttributes( true );
         attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );
@@ -148,7 +148,7 @@
         /*
          * create ou=testing00,ou=system
          */
-        attributes = new BasicAttributes();
+        attributes = new BasicAttributes( true );
         attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );
@@ -172,7 +172,7 @@
         /*
          * fail on recreate attempt for ou=testing00,ou=system
          */
-        attributes = new BasicAttributes();
+        attributes = new BasicAttributes( true );
         attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );

Modified: directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/DestroyContextTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/DestroyContextTest.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/DestroyContextTest.java (original)
+++ directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/DestroyContextTest.java Sat Aug 13 00:10:37 2005
@@ -43,7 +43,7 @@
         /*
          * create ou=testing00,ou=system
          */
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         Attribute attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );
@@ -66,7 +66,7 @@
         /*
          * create ou=testing01,ou=system
          */
-        attributes = new BasicAttributes();
+        attributes = new BasicAttributes( true );
         attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );
@@ -89,7 +89,7 @@
         /*
          * create ou=testing02,ou=system
          */
-        attributes = new BasicAttributes();
+        attributes = new BasicAttributes( true );
         attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );
@@ -114,7 +114,7 @@
          */
         ctx = ( DirContext ) sysRoot.lookup( "ou=testing01" );
 
-        attributes = new BasicAttributes();
+        attributes = new BasicAttributes( true );
         attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );

Modified: directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ExtensibleObjectTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ExtensibleObjectTest.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ExtensibleObjectTest.java (original)
+++ directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ExtensibleObjectTest.java Sat Aug 13 00:10:37 2005
@@ -29,7 +29,7 @@
 {
     public void testExtensibleObjectModify() throws Exception
     {
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         Attribute attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );
@@ -49,7 +49,7 @@
         assertTrue( attribute.contains( "top" ) );
         assertTrue( attribute.contains( "organizationalUnit" ) );
         
-        Attributes newattribs = new BasicAttributes();
+        Attributes newattribs = new BasicAttributes( true );
         Attribute freeform = new BasicAttribute( "freeform" );
         freeform.add( "testing" );
         newattribs.put( freeform );
@@ -74,7 +74,7 @@
 
     public void testExtensibleObjectAdd() throws Exception
     {
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         Attribute attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "extensibleObject" );

Modified: directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ModifyContextTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ModifyContextTest.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ModifyContextTest.java (original)
+++ directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ModifyContextTest.java Sat Aug 13 00:10:37 2005
@@ -45,7 +45,7 @@
             /*
              * create ou=testing00,ou=system
              */
-            Attributes attributes = new BasicAttributes();
+            Attributes attributes = new BasicAttributes( true );
             Attribute attribute = new BasicAttribute( "objectClass" );
             attribute.add( "top" );
             attribute.add( "organizationalUnit" );
@@ -68,7 +68,7 @@
             /*
              * create ou=testing01,ou=system
              */
-            attributes = new BasicAttributes();
+            attributes = new BasicAttributes( true );
             attribute = new BasicAttribute( "objectClass" );
             attribute.add( "top" );
             attribute.add( "organizationalUnit" );
@@ -91,7 +91,7 @@
             /*
              * create ou=testing02,ou=system
              */
-            attributes = new BasicAttributes();
+            attributes = new BasicAttributes( true );
             attribute = new BasicAttribute( "objectClass" );
             attribute.add( "top" );
             attribute.add( "organizationalUnit" );
@@ -116,7 +116,7 @@
              */
             ctx = ( DirContext ) sysRoot.lookup( "ou=testing01" );
 
-            attributes = new BasicAttributes();
+            attributes = new BasicAttributes( true );
             attribute = new BasicAttribute( "objectClass" );
             attribute.add( "top" );
             attribute.add( "organizationalUnit" );
@@ -144,7 +144,7 @@
 
     public void testModifyOperation() throws NamingException
     {
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         attributes.put( "ou", "testCases" );
         sysRoot.modifyAttributes( "ou=testing00", DirContext.ADD_ATTRIBUTE, attributes );
         attributes = null;

Modified: directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/SearchContextTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/SearchContextTest.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/SearchContextTest.java (original)
+++ directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/SearchContextTest.java Sat Aug 13 00:10:37 2005
@@ -48,7 +48,7 @@
         /*
          * create ou=testing00,ou=system
          */
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
 
         Attribute attribute = new BasicAttribute( "objectClass" );
 
@@ -85,7 +85,7 @@
         /*
          * create ou=testing01,ou=system
          */
-        attributes = new BasicAttributes();
+        attributes = new BasicAttributes( true );
 
         attribute = new BasicAttribute( "objectClass" );
 
@@ -122,7 +122,7 @@
         /*
          * create ou=testing02,ou=system
          */
-        attributes = new BasicAttributes();
+        attributes = new BasicAttributes( true );
 
         attribute = new BasicAttribute( "objectClass" );
 
@@ -161,7 +161,7 @@
          */
         ctx = ( DirContext ) sysRoot.lookup( "ou=testing01" );
 
-        attributes = new BasicAttributes();
+        attributes = new BasicAttributes( true );
 
         attribute = new BasicAttribute( "objectClass" );
 

Modified: directory/apacheds/trunk/core/src/test/org/apache/ldap/server/operational/BinaryAttributeFilterTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/operational/BinaryAttributeFilterTest.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/org/apache/ldap/server/operational/BinaryAttributeFilterTest.java (original)
+++ directory/apacheds/trunk/core/src/test/org/apache/ldap/server/operational/BinaryAttributeFilterTest.java Sat Aug 13 00:10:37 2005
@@ -41,7 +41,7 @@
 
     public void testBinaryExtension() throws NamingException
     {
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         attributes.put( "objectClass", "top" );
         attributes.put( "objectClass", "organizationalUnit" );
         attributes.put( "objectClass", "extensibleObject" );

Modified: directory/apacheds/trunk/core/src/test/org/apache/ldap/server/operational/OperationalAttributeServiceTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/operational/OperationalAttributeServiceTest.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/org/apache/ldap/server/operational/OperationalAttributeServiceTest.java (original)
+++ directory/apacheds/trunk/core/src/test/org/apache/ldap/server/operational/OperationalAttributeServiceTest.java Sat Aug 13 00:10:37 2005
@@ -49,7 +49,7 @@
         /*
          * create ou=testing00,ou=system
          */
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         Attribute attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "organizationalUnit" );

Modified: directory/apacheds/trunk/main/src/test/org/apache/ldap/server/AddObjectClassesToEntryTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/main/src/test/org/apache/ldap/server/AddObjectClassesToEntryTest.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/apacheds/trunk/main/src/test/org/apache/ldap/server/AddObjectClassesToEntryTest.java (original)
+++ directory/apacheds/trunk/main/src/test/org/apache/ldap/server/AddObjectClassesToEntryTest.java Sat Aug 13 00:10:37 2005
@@ -53,7 +53,7 @@
         ctx = new InitialDirContext( env );
 
         // Create a person
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         Attribute attribute = new BasicAttribute( "objectClass" );
         attribute.add( "top" );
         attribute.add( "person" );
@@ -114,7 +114,7 @@
     {
 
         // modify object classes, add two more
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         Attribute ocls = new BasicAttribute("objectClass");
         ocls.add("organizationalPerson");
         ocls.add("inetOrgPerson");
@@ -148,7 +148,7 @@
         String newDescription = "More info on the user ...";
 
         // modify object classes, add two more
-        Attributes attributes = new BasicAttributes();
+        Attributes attributes = new BasicAttributes( true );
         Attribute desc = new BasicAttribute("description", newDescription);
         attributes.put(desc);
 

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/ldif/LdifEntry.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/ldif/LdifEntry.java?rev=232433&r1=232432&r2=232433&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/ldif/LdifEntry.java (original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/ldif/LdifEntry.java Sat Aug 13 00:10:37 2005
@@ -1,19 +1,19 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed under the Apache License, Version 2.0 (the "License");
- *   you may not use this file except in compliance with the License.
- *   You may obtain a copy of the License at
- *
- *       http://www.apache.org/licenses/LICENSE-2.0
- *
- *   Unless required by applicable law or agreed to in writing, software
- *   distributed under the License is distributed on an "AS IS" BASIS,
- *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *   See the License for the specific language governing permissions and
- *   limitations under the License.
- *
- */
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
 
 /*
  * $Id: LdifEntry.java,v 1.3 2003/07/31 21:44:49 akarasulu Exp $
@@ -72,7 +72,7 @@
         m_modType = "add" ; // Default LDIF content
         m_itemList = new LinkedList() ;
         m_dn = null ;
-        m_attributeList = new BasicAttributes() ;
+        m_attributeList = new BasicAttributes( true ) ;
         m_version = 1 ; // default version in ldif
     }