directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r923817 - in /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap: exception/LdapInvalidAttributeValueException.java util/AttributeUtils.java
Date Tue, 16 Mar 2010 15:45:23 GMT
Author: elecharny
Date: Tue Mar 16 15:45:23 2010
New Revision: 923817

URL: http://svn.apache.org/viewvc?rev=923817&view=rev
Log:
o Fixed a missing break in a switch() statement
o Forgot a 'true' in an Attributes creation 

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java?rev=923817&r1=923816&r2=923817&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java
Tue Mar 16 15:45:23 2010
@@ -78,6 +78,8 @@ public class LdapInvalidAttributeValueEx
         {
             case CONSTRAINT_VIOLATION :
             case INVALID_ATTRIBUTE_SYNTAX :
+                this.resultCode = resultCode;
+                break;
                 
             default:
                 throw new IllegalArgumentException( I18n.err( I18n.ERR_04140, resultCode
) );

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java?rev=923817&r1=923816&r2=923817&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java
Tue Mar 16 15:45:23 2010
@@ -1241,7 +1241,7 @@ public class AttributeUtils
     {
         if ( entry != null )
         {
-            Attributes attributes = new BasicAttributes();
+            Attributes attributes = new BasicAttributes( true );
 
             // Looping on attributes
             for ( Iterator<EntryAttribute> attributeIterator = entry.iterator(); attributeIterator.hasNext();
)



Mime
View raw message