The diff for this file is too large to render

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

問題

When viewing a diff in a commit or pull request page this warning is encountered:

The diff for this file is too large to render. You can still retrieve it manually with the following Git command.


A similar message can be shown:

Your diff is too large to search Searching the first 1000 lines

原因

The number of lines in the file associated with the source in the diff view exceeds the page.max.diff.lines value (10000 by default).

ソリューション

If the file associated file with the diff contains more than 10.000 lines, eg. 12384 lines, the following property will need to be added to the bitbucket.properties file and set to at least double the file length.

page.max.diff.lines=24768

If the file contains less than 10000 lines, and this warning is displayed, then the default has already been updated to a value less than 10000. Check your bitbucket.properties file for this property. 

Bitbucket Server will always need to be restarted for changes on the bitbucket.properties file to take effect.

As mentioned in this resource - Bitbucket Server config properties - Paging:

The limits imposed by the defaults act as a safeguard to prevent enormous requests from tying up the server for extended periods of time and then generating responses whose payload is prohibitively large. The defaults configured here represent a sane baseline, but may be overridden if necessary.

Caution should be exercised if these settings are changed and the application will need to be monitored for adverse behavior.

最終更新日 2022 年 6 月 24 日

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

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