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

'Filter Results' Gadget throws "The JIRA server was contacted but has returned an error response." if name contains a hyphen

XMLWordPrintable

      Summary of Issue

      In the Filter Results gadget, when attempting to enter via the keyboard a hyphen (-) character to retrieve the list of Saved Filters, the web browser throws the following error:

      The JIRA server was contacted but has returned an error response. We are unsure of the result of this operation.

      How to reproduce

      1. Install JIRA 7.1.9 (issue still occurs on 7.3.2)
        • Click on Dashboards >> Manage Dashboards
        • Click Create new dashboard
        • Call the dashboard Test and click Add
        • Open the Test Dashboard
          • Click on Add gadget
            • Click Load All
            • Search for Filter and add the Filter Results gadget
          • Add the 'Filter Results' gadget to the dashboard
      2. In the Saved Filter: text box, enter the some text and a hyphen character (e.g. try to enter "Resolved Filter - today")

      Note: typing any punctuation mark above the numbers on the keyboard throws the same error.

      Expected Result

      JIRA should show "No Matches" or show the list of matching Saved Filters

      Actual Result

      The web browser (Chrome or Firefox) throws an error:

      The JIRA server was contacted but has returned an error response. We are unsure of the result of this operation.

      Inspecting the Network JSON response that comes back:

      {"message":"org.apache.lucene.queryParser.ParseException: Cannot parse '-* ()': '*' or '?' not allowed as first character in WildcardQuery","status-code":500,"stack-trace":"com.atlassian.jira.sharing.search.SearchParseException: org.apache.lucene.queryParser.ParseException: Cannot parse '-* ()': '*' or '?' not allowed as first character in WildcardQuery\n\tat com.atlassian.jira.sharing.index.QueryBuilder.parseWildcardQuery(QueryBuilder.java:191)\n\tat com.atlassian.jira.sharing.index.QueryBuilder.addParsedWildcardQuery(QueryBuilder.java:94)\n\t...}
      

      Workaround

      1. Select the Saved Filter from the list of Saved Filter instead of typing it in the text box; or
      2. Rename the Filter so it does not contain punctuation characters

              Unassigned Unassigned
              hlam@atlassian.com Eric Lam
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: