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

Failure when resolving an expression with the default value containing a '$' at the end

XMLWordPrintable

    • Hide

      The following commands fail in Wildfly 10 CLI (worked with Wildfly 8):

      $JBOSS_HOME/bin/jboss-cli.sh
      [disconnected /] connect
      
      #### preparation
      [standalone@localhost:9990 /] /system-property=my.sample.property1:add(value=sample-value-1)
      {"outcome" => "success"}
      [standalone@localhost:9990 /] /system-property=my.sample.property1:read-resource
      {
          "outcome" => "success",
          "result" => {"value" => "sample-value-1"}
      }
      #####
      
      [standalone@localhost:9990 /] /subsystem=naming/binding=java\:global\/my\/sample\/entry:add(binding-type=simple, type=java.lang.String, value="${my.sample.property1:entry5-default-value-with-special-char-at-the-end-$}")
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0370: Incomplete expression: ${my.sample.property1:entry5-default-value-with-special-char-at-the-end-$}",
          "rolled-back" => true
      }
      
      Show
      The following commands fail in Wildfly 10 CLI (worked with Wildfly 8): $JBOSS_HOME/bin/jboss-cli.sh [disconnected /] connect #### preparation [standalone@localhost:9990 /] /system-property=my.sample.property1:add(value=sample-value-1) { "outcome" => "success" } [standalone@localhost:9990 /] /system-property=my.sample.property1:read-resource { "outcome" => "success" , "result" => { "value" => "sample-value-1" } } ##### [standalone@localhost:9990 /] /subsystem=naming/binding=java\:global\/my\/sample\/entry:add(binding-type=simple, type=java.lang. String , value= "${my.sample.property1:entry5- default -value-with-special- char -at-the-end-$}" ) { "outcome" => "failed" , "failure-description" => "WFLYCTL0370: Incomplete expression: ${my.sample.property1:entry5- default -value-with-special- char -at-the-end-$}" , "rolled-back" => true }

      Can not add a JNDI / naming entry which contains a "$" sign at the end of its default value.

      e.g.

      value="${my.sample.property1:entry5-default-value-with-special-char-at-the-end-$}"
      

        1. ExpressionResolver.java
          4 kB
          Valentin Maechler
        2. ExpressionResolverUnitTestCase.java
          20 kB
          Valentin Maechler

              ehugonne1@redhat.com Emmanuel Hugonnet
              vmae_jira Valentin Maechler (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: