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

jvergara
12.05.2009 1a7d0e846f81abb5e9b108e1df65f9225a893b32
refs
author jvergara <jvergara@localhost>
Wednesday, August 12, 2009 08:05 +0200
committer jvergara <jvergara@localhost>
Wednesday, August 12, 2009 08:05 +0200
commit1a7d0e846f81abb5e9b108e1df65f9225a893b32
tree 6574c3c0bdb07c952eb888840ad2554d0cd5644e tree | zip | gz
parent b3449a69239cb7565515f92ecde70f2096932185 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
opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java 226 ●●●● diff | view | raw | blame | history