Uploaded image for project: 'DMR'
  1. DMR
  2. DMR-15

ValueExpressionResolver has odd rules about incomplete expressions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.3.0.Beta2
    • 1.3.0.Beta1
    • None

      Dating back to [1] the behavior of expression resolution in the presence of partial expressions has been inconsistent.

      This fails:

      ${partial
      

      This returns "x" assuming system property "partial" exists with value "x"

      ${partial}${partial
      

      Failing on "${partial" is reasonable since it can be escaped with "$${partial" if that string is wanted. Only failing sometimes is not correct though.

      This is relatively minor as WFCORE's expression logic will deal with this, masking the problem in DMR.

      [1] https://github.com/jbossas/jboss-dmr/commit/b9ae2704cf17e5e4b83987f2e9cafeed122c6327#diff-5119e19171d724f6be0e6031de4bcb15L222

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: