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

Jean-Noël Rouvignac
22.24.2016 85f8dbf0c8c5f34962963e17fa498cbfee35055f
refs
author Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, April 22, 2016 14:24 +0200
committer Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, April 22, 2016 16:40 +0200
commit85f8dbf0c8c5f34962963e17fa498cbfee35055f
tree 6741b62653aaea0a32688413eeaeb7d68934319c tree | zip | gz
parent 83f86f11c27378d650c3bfc7e55397687062edbc view | diff
OPENDJ-2958 Search on wrong dn under cn=config should fails with NoSuchEntry error

Problem is on the underlying MemoryBackend used by the ConfigurationHandler
(and the later being used by the ConfigurationBackend).

MemoryBackend.searchWithSubordinates() should first verify whether the baseObject exists,
and if not, return NO_SUCH_OBJECT.
MemoryBackendTestCase may have caught this if the InternalConnection (actually AbstractConnection.getSingleEntry())
was a lot more basic and avoided doing elaborate checks.
2 files modified
63 ■■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/MemoryBackend.java 36 ●●●● diff | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/MemoryBackendTestCase.java 27 ●●●●● diff | view | raw | blame | history