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

Jean-Noël Rouvignac
30.27.2016 68978afe2c3d52135c287cd7a381d2e8a6b44315
refs
author Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Wednesday, March 30, 2016 15:27 +0200
committer Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, March 31, 2016 10:43 +0200
commit68978afe2c3d52135c287cd7a381d2e8a6b44315
tree 54acfea06004278ff2a88779a033c58df8c240fd tree | zip | gz
parent 67856dd8dcf564ba1e78905e30f40b80a808b8f8 view | diff
OPENDJ-2787 Replication: NPE at server start when re-importing a dataset

This problem is triggered by a change in behaviour of DN.valueOf(String).
In the server DN, if the string value was null, it was returning the root DN,
while the SDK DN throws a NullPointerException.

ModifyDNMasg.java:
In newParentIsEqual(), added a null check.
In newDNIsParent() and newDNIsEqual(), added a fix for the change in behaviour of DN.valueOf()
(now throws LocalizedIllegalArgumentException instead of DirectoryException).
1 files added
1 files modified
158 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/ModifyDNMsg.java 42 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/protocol/ModifyDNMsgTest.java 116 ●●●●● diff | view | raw | blame | history