Details
-
Bug
-
Resolution: Fixed
-
Low
-
6.3.14
-
6.03
-
Description
steps to reproduce
- Configure jira.search.views.default.max=-1 for JIRA using jira-config.properties file
- Try to perform a search such as the following using JIRA's rest API: http://localhost:8080/rest/api/2/search?jql=project=CCR&maxResults=1
expected results
- Only one issue as specified in maxResults=1 is returned
actual results
- All the results matching the filter query are returned.
- Examining the returned JSON object you can see that maxResults value is registered as maxResults=2147483647 instead of 1 which was sent in the request.
other notes
- setting jira.search.views.default.max to an actual limit (lower than or equal to the value of jira.search.views.max.limit ) e.g. 1000 or removing it's setting entirely actually resolves the problem. (This can be used as a workaround)
- According to documentation, jira.search.views.default.max is defined as a default soft limit for maximum number of issues to be retrieved, it seems to be acting like a hard limit on the number of issues returned here. Note that even when maxResults is lower than the configured jira.search.views.default.max, it is still ignored.
Attachments
Issue Links
- relates to
-
JRASERVER-69136 User from Confluence is not able to view JIRA issue when there is unlimited jira.search.views. parameters added to jira-config.properties file
- Gathering Impact