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

neil_a_wilson
17.07.2006 265b1e9355d7e5110787fa5a47735c73abe1f9e1
Update the objectclass processing code to ensure that a given class cannot be
listed as its own superior (this was previously possible for the "top" class).

OpenDS Issue Number: 666
1 files modified
7 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/schema/ObjectClassSyntax.java 7 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/schema/ObjectClassSyntax.java
@@ -800,6 +800,13 @@
    }
    // This should only happen for the "top" objectclass.
    if (superiorClass.getOID().equals(oid))
    {
      superiorClass = null;
    }
    return new ObjectClass(primaryName, names, oid, description, superiorClass,
                           requiredAttributes, optionalAttributes,
                           objectClassType, isObsolete, extraProperties);