Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-39289

Cannot upload a file larger than 2GB through 'Upload file'

      Summary

      You cannot upload a file larger than 2GB through 'Upload file', while you can by Drag & Drop (See also attachmentPage.jpg)

      Steps to Reproduce

      1. Install vanilla Confluence 5.8.10 using H2SQL (I guess DB does not matter)
      2. Configure Attachment Maximum Size to accept up to 10GB
      3. Create a space and a page
      4. Go to attachment (/pages/viewpageattachments.action?pageId=<PAGE-ID>) of the page
      5. Try to upload a file larger than 2GB through 'Upload file'

      Expected Results

      The file larger than 2GB can be uploaded successfully

      Actual Results

      • The file larger than 2GB cannot be uploaded. The user will be redirected to /pages/doattachfile.action?pageId=<PAGE-ID>, which does not exist. See also redirect.jpg.
      • The below exception is thrown in the atlassian-confluence.log file:
        2015-09-17 09:51:28,383 WARN [http-nio-15810-exec-8] [opensymphony.webwork.dispatcher.ServletDispatcher] getMaxSize Unable to format 'webwork.multipart.maxSize' property setting. Defaulting to Integer.MAX_VALUE
         -- referer: http://<CONFLUENCE_BASE_URL>/pages/viewpageattachments.action?pageId=1572867 | url: /confluence15810/pages/doattachfile.action | userName: admin
        2015-09-17 09:51:33,969 ERROR [http-nio-15810-exec-8] [com.atlassian.xwork.FileUploadUtils] checkMultiPartRequestForErrors java.io.IOException: Content Length Error (2147487387 > 2147483647)
         -- referer: http://<CONFLUENCE_BASE_URL>/pages/viewpageattachments.action?pageId=1572867 | url: /confluence15810/pages/doattachfile.action | userName: admin | action: doattachfile | page: 1572867
        2015-09-17 09:51:34,030 INFO [http-nio-15810-exec-8] [atlassian.confluence.util.AccessLogFilter] doFilter admin POST http://<CONFLUENCE_BASE_URL>/pages/doattachfile.action 625777+58696 5649 0:0:0:0:0:0:0:1
        2015-09-17 09:51:34,039 WARN [http-nio-15810-exec-3] [opensymphony.webwork.dispatcher.ServletDispatcher] getMaxSize Unable to format 'webwork.multipart.maxSize' property setting. Defaulting to Integer.MAX_VALUE
         -- referer: http://<CONFLUENCE_BASE_URL>/pages/viewpageattachments.action?pageId=1572867 | url: /confluence15810/pages/doattachfile.action | userName: admin
        2015-09-17 09:51:39,641 ERROR [http-nio-15810-exec-3] [com.atlassian.xwork.FileUploadUtils] checkMultiPartRequestForErrors java.io.IOException: Content Length Error (2147487387 > 2147483647)
         -- referer: http://<CONFLUENCE_BASE_URL>/pages/viewpageattachments.action?pageId=1572867 | url: /confluence15810/pages/doattachfile.action | userName: admin | action: doattachfile | page: 1572867
        2015-09-17 09:51:39,688 INFO [http-nio-15810-exec-3] [atlassian.confluence.util.AccessLogFilter] doFilter admin POST http://<CONFLUENCE_BASE_URL>/pages/doattachfile.action 683821-22390 5650 0:0:0:0:0:0:0:1
        

      Workaround

      Use Drag & Drop instead

        1. attachmentPage.jpg
          attachmentPage.jpg
          158 kB
        2. redirect.jpg
          redirect.jpg
          49 kB

            [CONFSERVER-39289] Cannot upload a file larger than 2GB through 'Upload file'

            Benito - I am aware that this issue has been resolved, thanks! For my own knowledge of Jira use, I'm curious what the regular expression value you just entered is used for? If it's related to release notes or documentation, I'd be very interested in hearing more as we're working on providing better notes in our group as well. Thank you! William

            William Earl added a comment - Benito - I am aware that this issue has been resolved, thanks! For my own knowledge of Jira use, I'm curious what the regular expression value you just entered is used for? If it's related to release notes or documentation, I'd be very interested in hearing more as we're working on providing better notes in our group as well. Thank you! William

            This is a regression of CONF-20912.

            The error message up to 5.7.3 was this:

            Total upload size is too large (2,048.00 MB). Reduce total filesize to below 2,048.00 MB

            In 5.7.5 and above, the above behaviour occurs - the user is redirected to a blank page.

            I am going to re-open CONF-20912 as it appears to not have been resolved after all.

            Denise Unterwurzacher [Atlassian] (Inactive) added a comment - - edited This is a regression of CONF-20912 . The error message up to 5.7.3 was this: Total upload size is too large (2,048.00 MB). Reduce total filesize to below 2,048.00 MB In 5.7.5 and above, the above behaviour occurs - the user is redirected to a blank page. I am going to re-open CONF-20912 as it appears to not have been resolved after all.

              Unassigned Unassigned
              mnakagawa Mai Nakagawa (Inactive)
              Affected customers:
              4 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: