Uploaded image for project: 'Commons Jelly'
  1. Commons Jelly
  2. JELLY-282

Jelly tag text cannot contain "${" that isn't part of a variable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: core / taglib.core
    • Labels:
      None

      Description

      It looks like there is no way to represent the text "${" in a Jelly script, if it doesn't then end with a "}". For instance, this:

      <log:warn>Testing ${ </log:warn>

      breaks with:

      org.apache.commons.jelly.JellyException: null:-1:-1: <null> Missing '}' character at the end of expression: Testing ${
      at org.apache.commons.jelly.expression.CompositeExpression.parse(CompositeExpression.java:79)
      at org.apache.commons.jelly.parser.XMLParser.addTextScript(XMLParser.java:1106)
      at org.apache.commons.jelly.parser.XMLParser.endElement(XMLParser.java:677)
      at electric.xml.sax.SAXParser.parseElement(SAXParser.java:653)
      at electric.xml.sax.SAXParser.parseChildren(SAXParser.java:787)
      at electric.xml.sax.SAXParser.parseElement(SAXParser.java:633)
      at electric.xml.sax.SAXParser.parse(SAXParser.java:330)
      at electric.xml.sax.SAXParser.parse(SAXParser.java:270)
      at electric.xml.sax.SAXParser.parse(SAXParser.java:194)
      at org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:296)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jefft Jeff Turner
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: