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

Jean-Noël Rouvignac
13.48.2016 d219cba0ae3f8b69e5f68eb542974f0319304803
refs
author Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, June 13, 2016 13:48 +0200
committer Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Wednesday, June 22, 2016 09:16 +0200
commitd219cba0ae3f8b69e5f68eb542974f0319304803
tree 2316d945ac427d1f8d41884e1c06ec47a0a32ab0 tree | zip | gz
parent e84a18c90773da3c51a70059682600866daf92bf view | diff
OPENDJ-3095 Upgrade: uninstallation of replicated server throws a NPE

The problem happened because the connection is defaulted to the adminUID, but the password is null.

3.0.0 code handled this gracefully although it was reporting an error while running uninstall.
3.5.0 code fails with a NPE on the call to password.toCharArray().

The fix consists in propagating differently the bind DN/password information
and in treating null bindDN or null password to be an anonymous bind.
2 files modified
37 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/admin/ads/util/ConnectionUtils.java 6 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/admin/ads/util/ConnectionWrapper.java 31 ●●●●● diff | view | raw | blame | history