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

neil_a_wilson
08.20.2007 37820c6eb0a7061f62fbc7b540eda842cf455bf4
refs
author neil_a_wilson <neil_a_wilson@localhost>
Thursday, March 8, 2007 21:20 +0100
committer neil_a_wilson <neil_a_wilson@localhost>
Thursday, March 8, 2007 21:20 +0100
commit37820c6eb0a7061f62fbc7b540eda842cf455bf4
tree 15e35f379262af2bc586b974bcd2f2316adb470a tree | zip | gz
parent 7ff5e7514bd93610a186771f6dfbee816320e468 view | diff
Fix a bug in the schema backend that could cause problems when deleting one
instance of an element and adding a different instance of the same element in
the same modification that also depends on a third schema element which was
added between the two. For example, if you tried to have a single modify
operation that deleted an existing object class, added a new attribute type,
and added a new object class that depended on the new attribute type, the
operation would fail because when processing the removal of the object class
the server would attempt to determine whether it was going to be re-added later
in the operation and therefore attempted to decode any object class additions
later in the operation. An error occurred when trying to decode the new object
class because it depended on an attribute type that was not yet defined and the
decode operation wasn't told to ignore unknown schema elements.

OpenDS Issue Number: 1318
2 files modified
67 ■■■■■ changed files
opends/src/server/org/opends/server/backends/SchemaBackend.java 8 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/backends/SchemaBackendTestCase.java 59 ●●●●● diff | view | raw | blame | history