Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.8.3
-
None
-
Severity 2 - Major
-
Description
Summary
The "attachment.upload.max.size" property does not affect the actual upload limit
Per Bitbucket Server config properties , attachment.upload.max.size should increase the upload file size with the value in MB. In the UI, the value shows in Bytes, but is disregarded by the system.
Steps to Reproduce
Trial 1:
- Edit $BITBUCKET_HOME/shared/bitbucket.properties add attachment.upload.max.size=40
- Restart Bitbucket Server
- Attempt to upload a 15 MB file to an open pull request
Trial 2:
- Edit $BITBUCKET_HOME/shared/bitbucket.properties add attachment.upload.max.size=40000000
- Restart Bitbucket Server
- Attempt to upload a 15 MB file to an open pull request
Expected Results
- File is uploaded successfully with the value set to "40"
Actual Results
Trial 1:
- Web UI Error message shows "NOTE: THERE IS A 40 B SIZE LIMIT PER FILE
Trial 2:
- Web UI Error message shows "NOTE: THERE IS A 38.1 MB SIZE LIMIT PER FILE
Notes
None of the logs show any messages related to attempting to upload the file
Workaround
No workaround at this time