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

Category names containing '{'..'}' break portlets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 3.4.2
    • None
    • Dashboard & Gadgets
    • None

    Description

      If I have a category named "

      {Foo}

      ", and try to add a "Projects" portlet to JIRA's dashboard, JIRA breaks with:

      2005-11-21 14:40:53,109 ERROR [[Catalina].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception
      javax.servlet.jsp.JspException: java.lang.IllegalArgumentException: can't parse argument number Foo
          at java.text.MessageFormat.makeFormat(MessageFormat.java:1330)
          at java.text.MessageFormat.applyPattern(MessageFormat.java:450)
          at java.text.MessageFormat.<init>(MessageFormat.java:350)
          at com.atlassian.jira.web.tags.TextTag.doEndTag(TextTag.java:175)
          at org.apache.jsp.template.standard.selectmap_jsp._jspx_meth_webwork_text_0(org.apache.jsp.template.standard.selectmap_jsp:1680)
          at org.apache.jsp.template.standard.selectmap_jsp._jspx_meth_webwork_if_19(org.apache.jsp.template.standard.selectmap_jsp:1657)
          at org.apache.jsp.template.standard.selectmap_jsp._jspx_meth_webwork_iterator_2(org.apache.jsp.template.standard.selectmap_jsp:1583)
          at org.apache.jsp.template.standard.selectmap_jsp._jspx_meth_webwork_else_0(org.apache.jsp.template.standard.selectmap_jsp:1541)
          at org.apache.jsp.template.standard.selectmap_jsp._jspService(org.apache.jsp.template.standard.selectmap_jsp:197)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      

      evidently JIRA is not escaping the category name.

      Attachments

        Activity

          People

            dylan@atlassian.com Dylan Etkin [Atlassian]
            7ee5c68a815f Jeff Turner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: