Details
-
Bug
-
Resolution: Fixed
-
Low
-
3.1.7, 3.2.7, 3.3.3, 3.4.0, 4.1.0
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
- Connect Bitbucket Server to 2 user directories.
- In directory 1, add a user bob
- In directory 2, add a user fred
- Temporarily disable directory 2
- In directory 1, rename user bob to fred
- Sync directory 1
- Re-enable directory 2.
Attachments
Issue Links
- is caused by
-
BSERV-4680 User unable to sync LDAP/Active Directory after user rename if username already exists in another directory
- Closed