https://access.stage.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/management-cli-guide currently doesn't cover the cases when value added by CLI contains either whitespace or characters with diacritics. Whitespaces are considered separators and are trimmed.
Using system-property only for demonstration purposes, but same apply to any other resource.
using result of read-attribute operation
Whitespace in the middle without diacritics
/system-property=name:write-attribute(name=value, value=Petr Kremensky) "result" => "PetrKremensky" /system-property=name:write-attribute(name=value, value=Petr\ Kremensky) "result" => "Petr Kremensky" /system-property=name:write-attribute(name=value, value="Petr Kremensky") "result" => "Petr Kremensky" /system-property=name:write-attribute(name=value, value={Petr Kremensky}) "result" => "Petr Kremensky"
No whitespace with diacritics
/system-property=name:write-attribute(name=value, value=PetrKřemenský) "result" => "PetrKřemenský" /system-property=name:write-attribute(name=value, value="PetrKřemenský") "result" => "PetrK?emensk?" /system-property=name:write-attribute(name=value, value={PetrKřemenský}) "result" => "PetrKřemenský"
Whitespace in the middle with diacritics
/system-property=name:write-attribute(name=value, value=Petr Křemenský) "result" => "PetrKřemenský" /system-property=name:write-attribute(name=value, value=Petr\ Křemenský) "result" => "Petr Křemenský" /system-property=name:write-attribute(name=value, value="Petr Křemenský") "result" => "Petr K?emensk?" /system-property=name:write-attribute(name=value, value={Petr Křemenský}) "result" => "Petr Křemenský"
Whitespace floods with diacritics
This case is quite extreme, I don't think this one has to be included, but we can discuss this further.
/system-property=name:write-attribute(name=value, value=" Petr Křemenský ") "result" => " Petr K?emensk? " /system-property=name:write-attribute(name=value, value=\ Petr\ Křemenský\ ) "result" => "\\ Petr Křemenský\\" /system-property=name:write-attribute(name=value, value={" Petr Křemenský "}) "result" => " Petr Křemenský "
My point here is not to copy&paste all these examples to the documentation, but extract some important use cases and add them to the documentation.
- blocks
-
JBEAP-4962 EAP7 Management CLI Guide issues tracker
- Closed
- is related to
-
JBEAP-5568 CLI cannot handle the ñ character
- Verified
-
JBEAP-5062 Document how to handle various Model types via CLI (CLI guide)
- Closed
- relates to
-
JBEAP-4536 Whitespaces in the middle of the value are siletly ignored
- Verified