Increasing the maximum size of a file attachment in a review
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Environment
Fisheye/Crucible
Please note that the below changes will not take effect when uploading attachments to reviews through the REST API as CRUC-7021 - Increase maximum attachment file size for Crucible uploads through REST API has been closed as Not Being Considered.
Problem
Uploading a file larger than the allotted 10MB limit results in the following error message:
Bad Request
Your browser sent a request that this server could not understand.
The following appears in the atlassian-fisheye-YYYY-MM-DD.log
:
1
2
DEBUG [qtp98826337-2732 ] fisheye ProfilingServletFilter-logRequest - start request POST /fisheye/cru/PROJ3-10/edit-patch/?command=upload sessionid=11md2ap348asl18b4ro7m5w4w7
ERROR [qtp98826337-2732 ] com.opensymphony.webwork.interceptor.FileUploadInterceptor FileUploadInterceptor-acceptFile - File too large: upload "upload_bfd79be2_5b1e_47dc_94ed_326ecd2dde1e_00000018.tmp" 138452783
Cause
A file larger than 10MB was uploaded.
Resolution
Please be advised that altering these configuration files is officially unsupported. The limit of 10MB on file uploads is enforced for performance reasons. If this limit is set to a high value and a large diff is uploaded, it is possible that Crucible can choke on the upload as this has not been tested – keep this in mind.
The limit can be changed by manipulating the value (the parameter is set in bytes) in <Fisheye/Crucible installation directory>/content/WEB-INF/classes/xwork-crucible.xml
. For example:
1
2
3
4
5
6
7
8
9
<action name="edit-upload" class="com.cenqua.crucible.actions.create.AddFileAction">
<interceptor-ref name="fileUpload">
<param name="maximumSize">10485760</param>
</interceptor-ref>
....
<action name="edit-patch" class="com.cenqua.crucible.actions.create.AddPatchAction">
<interceptor-ref name="fileUpload">
<param name="maximumSize">10485760</param>
</interceptor-ref>
The procedure to achieve this is:
Stop Fisheye/Crucible
Change the xwork-crucible.xml file with the desired value
Start Fisheye/Crucible
Was this helpful?