-
Bug
-
Resolution: Low Engagement
-
Low
-
None
-
7.1.9, 7.3.2, 7.4.1, 7.6.4
-
7.01
-
5
-
Severity 3 - Minor
-
0
-
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
- 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
- Click on Add gadget
- 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
- Select the Saved Filter from the list of Saved Filter instead of typing it in the text box; or
- Rename the Filter so it does not contain punctuation characters