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

jvergara
12.05.2009 7ff21533fcbffc04d384de5ee2e40df9fd24fb2d
refs
author jvergara <jvergara@localhost>
Wednesday, August 12, 2009 08:05 +0200
committer jvergara <jvergara@localhost>
Wednesday, August 12, 2009 08:05 +0200
commit7ff21533fcbffc04d384de5ee2e40df9fd24fb2d
tree 2b0c7d29ebea61aef76f534217800a6b1549e705 tree | zip | gz
parent 9f31b55669037de744e5b7ca3da5493abbebeff5 view | diff
Fix for issue 4172 (dsreplication: disable + enable causes SSL connection error)

The code assumed that if the two registries were equal, then they were replicated. This was wrong, if we disabled replication for one server, only the disabled server was unregistered from the ADS and this caused the problem (since the certificate of the previously unregistered server was not seeded). The fix consists of two parts (even though just one of them would be enough to fix the issue, I think that having both will help the code to handle more scenarios):

1. Check that if the registries are equal, they actually are replicated (in terms of configuration of the replication).
2. Unregister ALL the servers from the ADS of the server where replication is being disabled if we have to unregister the server itself.
1 files modified
226 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java 226 ●●●● diff | view | raw | blame | history