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

Jean-Noel Rouvignac
03.17.2015 3c076c08cea23613c0f599c3d287b4c8b7e0ba73
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, February 3, 2015 15:17 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, February 3, 2015 15:17 +0100
commit3c076c08cea23613c0f599c3d287b4c8b7e0ba73
tree 52eea5ddab426cab4fea6d359471b05103feebea tree | zip | gz
parent 0e4dba1e34cf6a2414267a399c1364c0e953ed52 view | diff
OPENDJ-1762 (CR-5923) verify-index on non existing index fails with NullPointerException when the server is stopped

Verifying a non existing index triggers some untested unhappy paths.
Faulty exception handling was creating the issue.


PersistItStorage.java:
In read(), only throw the cause if there is a cause.

VerifyJob.java:
Do not wrap StorageRuntimeException inside StorageRuntimeException.

BackendImpl.java:
Chain the original exception.
3 files modified
18 ■■■■ changed files
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/backends/persistit/PersistItStorage.java 12 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/BackendImpl.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/VerifyJob.java 4 ●●●● diff | view | raw | blame | history