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

matthew_swift
17.05.2007 576c771b187eec5b4a1cd1d763e7485fe4d5e5a1
refs
author matthew_swift <matthew_swift@localhost>
Tuesday, July 17, 2007 18:05 +0200
committer matthew_swift <matthew_swift@localhost>
Tuesday, July 17, 2007 18:05 +0200
commit576c771b187eec5b4a1cd1d763e7485fe4d5e5a1
tree 9764d0b3e850a4b8c084e183c2ba1a088fe6de9b tree | zip | gz
parent f163876c0a562fe6a00160e3dc7d9db4450a55d9 view | diff
Fix issue 1960: restrict the allowed values of boolean properties.

Before this change we allowed all sorts of boolean-like values for boolean properties, eg. true, false, yes, no, 1, 0, enabled, etc. These are always normalized to one of true or false. However, this normalization may confuse users, since they might expect that if they set a property to "yes" then the next time they view its value they might expect to see "yes", when in fact they'll see "true". This change restricts the set of permitted boolean values to just true or false.
3 files modified
42 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/admin/BooleanPropertyDefinition.java 12 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/admin/PropertyDefinitionUsageBuilder.java 6 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/BooleanPropertyDefinitionTest.java 24 ●●●● diff | view | raw | blame | history