Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  2. CONFSERVER-33033

Attachment upload fails without issuing a helpful error message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Duplicate
    • Affects Version/s: 5.3.4
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Confluence standalone.
      java-1.6.0-openjdk-amd64
      ubuntu 12.04

      Description

      To reproduce:

      Browse to a wiki article, click Edit, click the Link button, click Attachments, and attempt to upload an attachment. The attachment should be larger than the maximum allowed attachment size. The file will upload, then Confluence will show the user an error saying "Could not upload the file to Confluence. The server may be unavailable." No corresponding error will be written to atlassian-confluence.log at all.

      The error provided to the user, and the lack of any error at all in the logs, make this difficult for an admin to troubleshoot.

      The desired behavior happens if you browse to an article, go to the Attachments section, and upload the same file through the Attachments section. Confluence will display a "file too large" error to the user and will produce a "java.io.IOException: Content Length Error" in the log.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shaffenden Steve Haffenden (Inactive)
              Reporter:
              john.robison john robison
              Participants:
              Last Touched By:
              Katherine Yabut
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Last commented:
                5 years, 22 weeks, 4 days ago