mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
07.48.2006 a35f8a47cca3dbdb584cad85c5aa61f27e0bf42a
opends/src/server/org/opends/server/protocols/ldap/LDAPAttribute.java
@@ -365,7 +365,13 @@
         new LinkedHashSet<AttributeValue>(values.size());
    for (ASN1OctetString value : values)
    {
      attributeValues.add(new AttributeValue(attrType, value));
      if (! attributeValues.add(new AttributeValue(attrType, value)))
      {
        int    msgID   = MSGID_LDAP_ATTRIBUTE_DUPLICATE_VALUES;
        String message = getMessage(msgID, attributeType);
        throw new LDAPException(LDAPResultCode.ATTRIBUTE_OR_VALUE_EXISTS, msgID,
                                message);
      }
    }