-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
None
-
41
-
In the table cwd_user, there should be no rows where the external_id is repeated for the same directory_id. Said in another way, the external_id should be unique for the same directory_id.
To avoid this from causing problems, we should add a unique constraint at a database level in the table cwd_user.
When two users share external_id and directory_id, the user is not able to login or update new information from the external user directory. Those actions will fail with the following error:
org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2 at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:590) at org.springframework.orm.hibernate.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:353) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:375) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:337) at com.atlassian.crowd.embedded.hibernate2.HibernateUserDao.internalFindUserByExternalId(HibernateUserDao.java:501) at com.atlassian.crowd.embedded.hibernate2.HibernateUserDao.internalFindByExternalId(HibernateUserDao.java:473) at com.atlassian.crowd.embedded.hibernate2.HibernateUserDao.findByExternalId(HibernateUserDao.java:449) at com.atlassian.confluence.user.crowd.CachedCrowdUserDao.findByExternalId(CachedCrowdUserDao.java:164) ...
This also affects embedded Crowd.
- causes
-
CWD-5182 Sync Failures due to duplicated External IDs
-
- Closed
-
- is related to
-
CONFSERVER-35047 Confluence user synchronisation create duplicated user account after user rename in the remote repository
-
- Closed
-
-
CWD-3984 Rename user in external directory create new user with same external_id
-
- Closed
-
- relates to
-
CONFSERVER-22515 After change an username in Active Directory and resynchronize, there are two accounts showing in Confluence (the old and the new username).
-
- Closed
-
-
CWD-1133 Provide ability to rename users in Crowd.
- Closed
- is blocked by
-
KRAK-615 Loading...
- links to
Form Name |
---|
This bug (not feature/suggestion/enhancement) caused a nearly 1-month outage in our Jira -> Confluence user sync. It took a month of working w/ Atlassian's support teams until we finally found the excellent Patrick Turbett who more deeply investigated our issue and ultimately found that this defect was underlying it.
For other Jira/Confluence clients struggling:
Investigate the potential for duplicate users in Confluence using troubleshooting queries in your database. Resolve the duplicate by modifying the record, which will then allow the user sync process to complete which will trim the unmatched user from Confluence on completion.