Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4529

Document extra cases for adding a value via CLI

XMLWordPrintable

      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.

              rhn-support-ahoffer Andrea Hoffer
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: