Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-9089

The "attachment.upload.max.size" property does not affect the actual upload limit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 4.11.0
    • 4.8.3
    • None

    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:

      1. Edit $BITBUCKET_HOME/shared/bitbucket.properties add attachment.upload.max.size=40
      2. Restart Bitbucket Server
      3. Attempt to upload a 15 MB file to an open pull request

      Trial 2:

      1. Edit $BITBUCKET_HOME/shared/bitbucket.properties add attachment.upload.max.size=40000000
      2. Restart Bitbucket Server
      3. 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

      Attachments

        Activity

          People

            khughes@atlassian.com Kristy
            abromberg Aaron Bromberg (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: