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

matthew_swift
17.29.2007 8f738fff31f88400e530fe4443afd3a09f7e3f62
refs
author matthew_swift <matthew_swift@localhost>
Tuesday, July 17, 2007 18:29 +0200
committer matthew_swift <matthew_swift@localhost>
Tuesday, July 17, 2007 18:29 +0200
commit8f738fff31f88400e530fe4443afd3a09f7e3f62
tree 2b57f54b8d442a13ed1bf31084d90b756e6426ac tree | zip | gz
parent c28ff8b0588a70534ea3cd9f5b23d80aba15e1bc view | diff
Fix issue 1946: make it easier to read multi-valued DN properties. The get-xxx-prop sub-commands separate multi-valued properties using comma separators. This makes the display quite hard to read when the values are DNs because the DNs themselves contain commas. This change modifies the property value printing for dsconfig so that any values containing a comma or that entirely comprise of white-space are double-quoted. Thus, the DN dc=com stays as dc=com and the value dc=example,dc=com becomes "dc=example,dc=com".

Note that the get-xxx-prop sub-commands also support a one value per line mode (-E) which makes multi-valued properties easier to read. The sub-commands also support a script-friendly mode where no quoting is performed.
1 files modified
11 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/PropertyValuePrinter.java 11 ●●●●● diff | view | raw | blame | history