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

Duplicate Content When Updating Page Via REST Whilst Collaborative Editor Is Open

      Issue Summary

      When editing a page with the collaborative editor, a request to update the page via the REST API will result in duplicated content. This REST update is a seperate action unrelated to the editor.

      Generally only content that has been entered into the editor, and not yet published will be duplicated.

      Steps to Reproduce

      1. Create a page with some content, then publish the page
      2. Edit the page and add some additional content, do not yet publish the page
      3. Obtain the content of the draft using the REST API
        Get Draft Content
        GET /content/<content-id>?expand=body.storage&status=draft
        
      4. Add additional content to the recently obtained content, and POST it back to Confluence using
        Update Page Content
        PUT /content/<content-id>?status=draft  { "type": "page", "version": {"number": 1}, "space": {"key": "KEYS"}, "status": "current", "title": "Page Title", "body": { "storage": { "value": "<p>already published content</p><p><br /></p><p>some</p><p>new</p><p>changes</p><p>done</p><p>manually</p><p><br /></p><p>API UPDATE</p>", "representation": "storage" } } }
        
      5. Head back to the editor and note the duplicated content
      6. Publish the page and note the content is still duplicated

      Expected Results

      Confluence should reconcile the difference between the new REST content and the existing content in the editor.

      Actual Results

      Confluence doesn't correctly reconcile the difference between the REST content and the editor content, resulting in duplicated data.

      Workaround

      Currently the only workaround is to go back and edit the page to remove the duplicated content. Rolling back to a previous version will result in the loss of content added to the editor but not yet published.

      Note

      Whilst this issue presents in a similar fashion to CONFSERVER-59227: Duplicate content shown when editing a page, it is unrelated.

          Form Name

            [CONFSERVER-64758] Duplicate Content When Updating Page Via REST Whilst Collaborative Editor Is Open

            James Ponting added a comment - - edited

            Hi All,

            82964fddd72f - That doesn't line up with any of the issues we're currently tracking. I'd suggest opening a ticket at https://support.atlassian.com so we can look into the issue further.

            markus.poehler - I'd suggest taking a look at CONFSERVER-59227: Duplicate content shown when editing a page as it's more likely you're being impacted by that issue. The duplication in this ticket occurs when REST calls are made whilst the editor is active, so doesn't sound like what you're seeing in this case. We have a tool on that issue to collect data, so I'd invite you to review the tool documentation and submit a data report.

            Thanks,
            James Ponting
            Premier Support Engineer

            James Ponting added a comment - - edited Hi All, 82964fddd72f - That doesn't line up with any of the issues we're currently tracking. I'd suggest opening a ticket at https://support.atlassian.com so we can look into the issue further. markus.poehler - I'd suggest taking a look at CONFSERVER-59227: Duplicate content shown when editing a page as it's more likely you're being impacted by that issue. The duplication in this ticket occurs when REST calls are made whilst the editor is active, so doesn't sound like what you're seeing in this case. We have a tool on that issue to collect data, so I'd invite you to review the tool documentation and submit a data report. Thanks, James Ponting Premier Support Engineer

            Please investigate,

            we are also affected by random content dublication. 

            From our impression, this happens during load of the content not during saving. So the content looks like already dublicated when opening the edit mode. But unfortunately we also do not have evidence or a working Repro.

            This is a massive bug.

            Markus Pöhler added a comment - Please investigate, we are also affected by random content dublication.  From our impression, this happens during load of the content not during saving. So the content looks like already dublicated when opening the edit mode. But unfortunately we also do not have evidence or a working Repro. This is a massive bug.

            unfortunately editing it is not an option as the duplicated data becomes uneditable.

            ldipasquale added a comment - unfortunately editing it is not an option as the duplicated data becomes uneditable.

            Hi,

            thanks for looking into it. We are heavily affected by this bug in our daily workflows and hence are eagerly waiting for a bugfix.

            Best regards

            Elisabeth

            Elisabeth Jöbstl added a comment - Hi, thanks for looking into it. We are heavily affected by this bug in our daily workflows and hence are eagerly waiting for a bugfix. Best regards Elisabeth

              Unassigned Unassigned
              jponting James Ponting
              Affected customers:
              14 This affects my team
              Watchers:
              24 Start watching this issue

                Created:
                Updated: