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

Create a user interface to facilitate the process of cleaning up duplicate users in the database

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • User - Management
    • None
    • 5
    • 22
    • 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

      Problem:

      While the bug CONFSERVER-36018: Duplicates in the People Directory due to duplicates in the user_mapping table (fixed in Confluence Server 5.10.0) has been resolved, the duplicated users still exist in Confluence database.

      As per the update provided in the bug report:

      UPDATE
      This bug no longer causes duplicates in the people directory because we have hack/patch to hide duplicates on that page, even if duplicates exist in the index. However, dups still appear in @ mentions and other places.When dups show in @ mentions, the dup will show as "Unknown user (<username>) (<username>)

      The process of cleaning the database of duplicated users includes exhaustive SQL queries, and the SQL queries sometimes does not work due to differences between database usages and Confluence versions.

      Suggestions

      It'll be great if we include some kind of tool to "cleanup" the database in the application. We can add a "hidden" admin function just like "Rebuild Ancestor Table" action (Rebuilding the Ancestor Table - Atlassian Documentation)

      Is it possible to place a null constraint on lower_username? And potentially username as well? Currently there are no null constraints on this table.

      Another fix that would be ideal is to fix the user indexing upgrade task so that it handles null values gracefully, and performs this operation to remove them.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkhairuliana Monique Khairuliana (Inactive)
              Votes:
              41 Vote for this issue
              Watchers:
              24 Start watching this issue

              Dates

                Created:
                Updated: