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
| | |
| | | |
| | | 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()) |