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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0
    • None
    • core / taglib.core
    • 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

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

            Dates

              Created:
              Updated: