Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-8976

User sync fails because the system attempts to archive an active user account

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 4.10.0
    • 3.1.7, 3.2.7, 3.3.3, 3.4.0, 4.1.0
    • Enterprise

    Description

      Steps to reproduce

      1. Connect Bitbucket Server to 2 user directories.
      2. In directory 1, add a user bob
      3. In directory 2, add a user fred
      4. In directory 1, rename user bob to fred

      Expected outcome

      User bob should now be fred everywhere, and the old user fred should become an 'archived' user (so probably displays as fred_archive_1 or something like that)

      Actual outcome

      ERROR [clusterScheduler_Worker-2] c.a.c.d.DbCachingRemoteDirectory Incremental synchronization for directory [ 3014657 ] was unexpectedly interrupted, falling back to a full synchronisation
      java.lang.IllegalArgumentException: Only deleted users can be archived
      

      It then tries to do a full synchronization, but fails with a similar error:

      ERROR [clusterScheduler_Worker-2] c.a.c.d.DbCachingDirectoryPoller Error occurred while refreshing the cache for directory [ 3014657 ].
      java.lang.IllegalArgumentException: Only deleted users can be archived
      

      Workaround

      1. Connect Bitbucket Server to 2 user directories.
      2. In directory 1, add a user bob
      3. In directory 2, add a user fred
      4. Temporarily disable directory 2
      5. In directory 1, rename user bob to fred
      6. Sync directory 1
      7. Re-enable directory 2.

      Attachments

        Issue Links

          Activity

            People

              khughes@atlassian.com Kristy
              jpalacios Juan Palacios (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: