Accessing the SearchRequest XML displays a Forbidden 403

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

Accessing the SearchRequest.xml page (XML View) displays a HTTP 403, as in the below screenshot:

atlassian-jira-http-access.log に次のメッセージが表示される。

172.22.2.187 o825x4110x1 aquaman [14/Jan/2013:13:45:22 +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"

原因

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.

ソリューション

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 Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.