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

neil_a_wilson
07.05.2006 9bb8b527caa265bbfb332ed0bab636583990a253
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
opendj-sdk/opends/src/server/org/opends/server/types/Entry.java 7 ●●●●● patch | view | raw | blame | history
opendj-sdk/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())