directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1670438 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultAttribute.java
Date Tue, 31 Mar 2015 19:17:30 GMT
Author: elecharny
Date: Tue Mar 31 19:17:30 2015
New Revision: 1670438

URL: http://svn.apache.org/r1670438
Log:
Log a warning instead of an error when we try to store a value that is already present in
an Attribute. That fixes DIRAPI-196

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

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultAttribute.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultAttribute.java?rev=1670438&r1=1670437&r2=1670438&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultAttribute.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultAttribute.java
Tue Mar 31 19:17:30 2015
@@ -1079,7 +1079,7 @@ public class DefaultAttribute implements
                     }
                     else
                     {
-                        LOG.error( I18n.err( I18n.ERR_04486_VALUE_ALREADY_EXISTS, val, upId
) );
+                        LOG.warn( I18n.err( I18n.ERR_04486_VALUE_ALREADY_EXISTS, val, upId
) );
                     }
                 }
             }
@@ -1133,7 +1133,7 @@ public class DefaultAttribute implements
                     }
                     else
                     {
-                        LOG.error( I18n.err( I18n.ERR_04486_VALUE_ALREADY_EXISTS, val, upId
) );
+                        LOG.warn( I18n.err( I18n.ERR_04486_VALUE_ALREADY_EXISTS, val, upId
) );
                     }
                 }
             }
@@ -1212,7 +1212,7 @@ public class DefaultAttribute implements
                 }
                 else
                 {
-                    LOG.error( I18n.err( I18n.ERR_04486_VALUE_ALREADY_EXISTS, Strings.dumpBytes(
val ), upId ) );
+                    LOG.warn( I18n.err( I18n.ERR_04486_VALUE_ALREADY_EXISTS, Strings.dumpBytes(
val ), upId ) );
                 }
             }
         }



Mime
View raw message