Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2857

DSL tokens abutting brackets expand with leading whitespaces

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 5.1.1.FINAL
    • None
    • Hide

      Create a DSL with

      [when]

      {name} is my name=n:Name(name=="{name}

      ")

      Observe whitespace in expansion of token name.

      Show
      Create a DSL with [when] {name} is my name=n:Name(name=="{name} ") Observe whitespace in expansion of token name.

    Description

      If a token appears in the LHS of a [when] with no other characters between the ] and the {, the token expands with leading whitespaces in the RHS. For example:

      [when]

      {name} is my name=n:Name(name=="{name}

      ")

      When name "Mark" is entered (without quotes), it expands to:

      n:Name(name==" Mark")

      Introducing a whitespace or other text between [when] and

      {name}

      eliminates the leading whitespace from the RHS.

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            mwhidden_jira Michael Whidden (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Archived:

              PagerDuty