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

Roll back attachment entry in database if attachment file upload attempt fails

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Fix
    • None
    • None
    • N/A
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      When a user attempts to upload an attachment but the file upload process fails, the counter on attachment page and associated information is updated as though the operation succeeded. The database entry is still being made despite upload attempt failing.

      Checking the source code shows that the database entry is updated prior to the transfer being attempted to generate the id for the file-name, but if the upload fails then no rollback is performed on the database operation.

      Improved behaviour would be to check the file upload success and undo the entry if the attempt was unsuccessful.

      Attachments

        Issue Links

          Activity

            People

              smansour Sherif Mansour
              david.soul@atlassian.com David Soul [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: