Uploading a large file on the attachments screen times out

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.19.24, 9.4.0, 9.3.1, 9.5.0, 9.2.5
    • Component/s: Content - Attachments
    • None
    • 4
    • Severity 3 - Minor
    • 1

      Issue Summary

      Uploading a large file on the attachments screen times out

      Steps to Reproduce

      Via Page's Attachment List

      1. Log in to Confluence and navigate to the "Attachments" screen of an existing page (created one if needed). (The screen corresponds to this action: viewpageattachments.action)
      2. Check that the attachment size limit is 100MB.
      3. Try to upload a file that is over the limit, e.g. 300MB.

      Via Attachments Macro
      While the UI doesn't timeout, but a different method of uploading attachment over the size limit also fails (with a different behavior):

      1. Create a page and insert an Attachments Macro, then publish the page
      2. On the page's View Mode, click "browse for files" on the Attachment Macro, and select a file larger than the attachment maximum size to upload

      Optional
      The optional steps below can be done for easier replication:

      1. Go to General Configuration
      2. Click "Edit" under Attachment Settings
      3. Modify the "Attachment Maximum Size" to a much smaller size (eg: 1MB)

      Expected Results

      The screen should show an error saying the file was too large to upload.

      Uploading attachment via Drag and Drop into the Attachments Macro is displayed with a meaningful warning message:

      Actual Results

      Via Page's Attachment List
      The request retries and times out,

      • Firefox
      • Chrome

      When inspect from browser's developer tool, the POST request to /pages/doattachfile.action?pageId=12345 is not getting any response

      Via Attachments Macro
      No error message is shown to the user, and the macro loads indefinitely:

      When inspect from browser's developer tool, the POST request to /pages/plugins/attachments/doattachfile.action?pageId=12345 is not getting any response

      Workaround

      Upload using the editor upload dialog instead, or via "Drag and Drop" method in Attachments Macro

        1. image.png
          240 kB
          Diclehan Erdal
        2. image-1.png
          150 kB
          Diclehan Erdal
        3. image1.png
          150 kB
          Diclehan Erdal
        4. expected result.png
          306 kB
          Damien Tan
        5. chrome error.png
          29 kB
          Damien Tan
        6. attachment macro upload.png
          314 kB
          Damien Tan

            Assignee:
            Unassigned
            Reporter:
            Diclehan Erdal
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: