Accessing the SearchRequest XML displays a Forbidden 403

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

Accessing the SearchRequest.xml page (XML View) displays a HTTP 403 forbidden error.

The following appears in the atlassian-jira-http-access.log:

123.45.6.789 o825x4110x1 user [DD/MMM/YYYY:HH:MM:SS +1100] "GET http://thejiraserver/sr/jira.issueviews:searchrequest-xml/12345/SearchRequest.xml HTTP/1.1" 403 0 0.1200 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.101 Safari/537.11" "iqrydw"

Cause

The filter is returning more results than is specified in the jira.search.views.max.limit as per our Limiting the number of issues returned from a search view such as an RSS feed documentation.

Resolution

Any of the below solutions will prevent a 403 from being displayed:

  1. Increase the jira.search.views.max.limit as in our Limiting the number of issues returned from a search view such as an RSS feed.
    (warning) Increasing this value greater than 1000 will result in all search results automatically querying the JIRA instance for that many issues. This can cause significant detrimental performance problems with the instance and it is not recommended to change this number greater than 1000.
  2. Append a tempMax parameter to the URL as in the below example. However, this will only return the first 1000 issues.

    http://thejiraserver/sr/jira.issueviews:searchrequest-xml/12161/SearchRequest-12161.xml?tempMax=1000

    In order to return the remaining issues, another query will need to be made using the pager/start parameter:

    http://thejiraserver/sr/jira.issueviews:searchrequest-xml/12161/SearchRequest-12161.xml?tempMax=1000&pager/start=1000
  3. Our recommended approach is to use the REST API to retrieve the results as per our REST API documentation. For example:

    http://thejiraserver/rest/api/2/search?jql=project%20%3D%20JIRA

Last modified on Nov 25, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.