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

duplicate item in dashboard all-updates after deleting a user

    XMLWordPrintable

    Details

      Description

      Summary

      After deleting a user, it's observed that mentions contained in comments in the #all-updates view still exist with the original user name intact and there is an additional comment created that contains a key instead of the anonymised username:

      Steps to Reproduce

      1. Comment on a page and mention a user
      2. Delete that user
      3. Comment in Dashboard > All updates view contains user name and duplicate comment

      Context

      This bug only appears when the content in #all-updates belongs to the user being deleted. All-updates relies on change documents in lucene. As part of reindexing content with user mentions, we also reindex change documents, which involves first looking up the original change document for a given content object, deleting it, and then adding a new change document for the same content object. Unfortunately, looking up the original change document relies on the username. By the time, we try and look up the original change document, the user has already been renamed, so we don't find the original, but we do add a new one, resulting in duplication.

      See com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask#perform

      Workaround

      Perform a site reindex to remove the duplicates. Or, create more than 40 new changes, which will push the duplicate entry out of the all-updates tab.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                wmasters Will Masters
                Participants:
                Last Touched By:
                Usman Khalid
              • Votes:
                5 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Last commented:
                  26 weeks, 5 days ago