Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1546

Whitespaces in the middle of the value are siletly ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha1
    • 2.2.0.CR2
    • CLI
    • None

      Whitespace in the middle of value (e.g. adding a system property with a value like "my property") is silently ignored.

      Going to the history, this behaviour changed was introduced in EAP 6.0.1

      6.0.0

      /subsystem=logging/console-handler=CONSOLE:write-attribute(name=level, value=   I   N   F   O)
      {
          "outcome" => "failed",
          "failure-description" => "JBAS011539: Log level I   N   F   O is invalid.",
          "rolled-back" => true
      }
      /system-property=test:add(value=ha ha ha)
      /system-property=test:read-attribute(name=value)
      {
          "outcome" => "success",
          "result" => "ha ha ha"
      }
      

      6.0.1 up to 7.0.0

      /subsystem=logging/console-handler=CONSOLE:write-attribute(name=level, value=   I   N   F   O)
      /subsystem=logging/console-handler=CONSOLE:read-attribute(name=level)
      {
          "outcome" => "success",
          "result" => "INFO"
      }
      /system-property=test:add(value=ha ha ha)
      /system-property=test:read-attribute(name=value)
      {
          "outcome" => "success",
          "result" => "hahaha"
      }
      

      Main concern here is whether it is a correct behaviour to silently ignore the whitespace in the middle.

              chaowan@redhat.com Chao Wang
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: