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

Whitespaces in the middle of the value are siletly ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR2
    • 7.0.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
            pkremens@redhat.com Petr Kremensky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: