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

Gaetan Boismal
11.37.2016 d48536f1cf5e4b6714122fc0d85a5e77bf731346
refs
author Gaetan Boismal <gaetan.boismal@forgerock.com>
Friday, March 11, 2016 10:37 +0100
committer Gaetan Boismal <gaetan.boismal@forgerock.com>
Wednesday, March 16, 2016 12:41 +0100
commitd48536f1cf5e4b6714122fc0d85a5e77bf731346
tree 6a6f692e297945ca7faaea464d3b883a61a16ccc tree | zip | gz
parent 00006ce6d59364fe3c379761749213e9a949cc40 view | diff
OPENDJ-2730 Fix upgrade on case insensitive file systems

Chris spotted that since ed3930d, the upgrade removes opendj.jar and
opendj_*.jar from case insensitive file systems (case preserving fs are not impacted).
This is caused by the "cleanup lib directory" upgrade task which wants to delete old OpenDJ
camel case jars which have been overridden by "valid" lower case jars on
case insensitive/preserving file systems.
On case preverving file systems, the delete fails.
On case insensitive file systems, it works.
This commit fixes the issue by checking whether the file system is case
sensitive before removing old OpenDJ[_*].jar jars.
The fix does not concern OpenDJ[-*].jar jars because the have to be
removed anyway (see OPENDJ-2692).
4 files modified
93 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/Upgrade.java 41 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeCli.java 2 ●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeTasks.java 48 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/messages/org/opends/messages/tool.properties 2 ●●●●● diff | view | raw | blame | history