Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-78065

Provide bulk method to removeAttachments in AttachmentManager



    • 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.


      Issue Summary

      This is reproducible on Data Center: (yes) 

      A feature request for moveAttachments API so that only few Synchrony reconciliations are done for each content only after all attachments are moved

      Steps to Reproduce

      1. Currently each attachment move triggers one content reconciliation on the container of the attachment.
      2. In case of large number of attachment moves, it can overwhelm the system with 2-3 times the transactions.

      Expected Results

      Only 2-3 reconciliation requests are created after all attachment moves.

      Actual Results

      Reconciliation requests in 2-3 times the number of attachments are raised at the moment.


      The problem can only be reproduced when Collaborative Editing is enabled.


      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Impact on apps

      This has an impact on the ConfiForms - Data Forms & Workflows app causing the form submission (in case of a "Move Attachment" IFTTT action) to fail with a message similar to the following:

      WARN [http-nio-8090-exec-3001 url: /ajax/confiforms/trysave.action; user: dbbadmin] [confluence.util.profiling.DurationThresholdWarningTimingHelperFactory] logMessage Execution time for post-commit task com.atlassian.confluence.internal.content.collab.AttachmentRelatedContentReconciliationListener$$Lambda$4088/0x0000000803ddf440@4673afda took 176513 ms (warning threshold is 5000 ms)

      Possible option to address the problem:

      • instead of using the current ConfiForms definition, create a new page. This will reset the need for the reconciliation logic to follow a significant number of content/attachment links.


        Issue Links



              Unassigned Unassigned
              ggautam Ganesh Gautam
              2 Vote for this issue
              4 Start watching this issue