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

matthew_swift
17.05.2007 f42bb1f095f0b3eac12684f5f0794ae5d61a9db5
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
commitf42bb1f095f0b3eac12684f5f0794ae5d61a9db5
tree 6f45e36cd18816ec36b2ddda9331a0efeeda71c8 tree | zip | gz
parent 0658d6c50d97fd3b1804a8f4577ff69d870c3b5f 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
opends/src/server/org/opends/server/admin/BooleanPropertyDefinition.java 12 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/PropertyDefinitionUsageBuilder.java 6 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/admin/BooleanPropertyDefinitionTest.java 24 ●●●● diff | view | raw | blame | history