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

neil_a_wilson
07.05.2006 de17da6e1465decdded23e4b04d85540be3b6933
Fix a problem in which an attempt to remove the objectClass attribute is
successful. The attempt to remove the entire attribute (without specifying the
individual values) was not properly handled and the entry remained unchanged
instead of actually removing the values.

OpenDS Issue Number: 762
1 files modified
7 ■■■■■ changed files
opends/src/server/org/opends/server/types/Entry.java 7 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/types/Entry.java
@@ -1539,6 +1539,13 @@
    if (attribute.getAttributeType().isObjectClassType())
    {
      LinkedHashSet<AttributeValue> valueSet = attribute.getValues();
      if ((valueSet == null) || valueSet.isEmpty())
      {
        objectClasses.clear();
        return true;
      }
      boolean allSuccessful = true;
      for (AttributeValue v : attribute.getValues())