Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-15631

jelly with invalid variables script returns blank page to user

    XMLWordPrintable

Details

    Description

      If you run the attached Jelly script against JIRA (no other setup, preparation necessary) the user simply gets a blank page back. The log has the following stack trace:

      2008-09-19 13:45:57,756 http-8090-Processor4 [webwork.dispatcher.ServletDispatcher] Could not execute action
      org.apache.commons.jexl.parser.TokenMgrError: Lexical error at line 1, column 10. Encountered: "\u00f3" (243), after : ""
      at org.apache.commons.jexl.parser.ParserTokenManager.getNextToken(ParserTokenManager.java:756)
      at org.apache.commons.jexl.parser.Parser.jj_scan_token(Parser.java:3165)

      There is a problem in the user script but JIRA should handle the error better.

      JIRA is currently using commons-jexl 1.0. It appears that commons-jexl 1.1 was released Sept 9, 2006. On a whim I tried running JIRA against jexl 1.1. The same error occurred but this time JIRA displayed a nice error message to the user that helped me pinpoint the problem.

      Attachments

        1. fails.xml
          1.00 MB

        Activity

          People

            mlassau Mark Lassau (Inactive)
            jpendleton Justus Pendleton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: