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

Expression properties with trailing whitespaces are resolved to a trimmed value

XMLWordPrintable

    • Hide

      Configure a server with the following system-properties section:

          <system-properties>
              <property name="a" value="a "/>
              <property name="b" value="${a}/b "/>
          </system-properties>
      

      Deploy the attached playground.war and start the server.

      Once the server is started open the URL http://localhost:8080/playground/system-property/b

      The result is:

      value for system property 'b' is 'a /b'
      

      wheras it should be

      value for system property 'b' is 'a /b '
      
      Show
      Configure a server with the following system-properties section: <system-properties> <property name= "a" value= "a " /> <property name= "b" value= "${a}/b " /> </system-properties> Deploy the attached playground.war and start the server. Once the server is started open the URL http://localhost:8080/playground/system-property/b The result is: value for system property 'b' is 'a /b' wheras it should be value for system property 'b' is 'a /b '
    • Undefined

      A defined system property with a configured trailing blank should be used as is, as this might be an intended configuration by the user.

      When starting the server trailing whitespaces in a system property containing an expression are trimmed.

            rhn-support-jbaesner Joerg Baesner
            rhn-support-jbaesner Joerg Baesner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: