-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
None
-
None
Sometimes, when renaming users in a external directory, a new user is created, instead of updating the current one. This causes a duplicity in the pair external_id and directory_id which cause an exception when calling the method com.atlassian.confluence.user.crowd.CachedCrowdUserDao.findByExternalId which is used during authentication and synchronization of the external directory.
The error resulting from that operation is:
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 affects embedded Crowd so other Atlassian applications (Confluence, JIRA,...) may also have this problem.
- causes
-
CONFSERVER-33455 After renaming a user in Active Directory, Confluence syncs that user in as a new user (if and only if Confluence is connected to JIRA or Crowd, which is in turn connected to LDAP)
-
- Closed
-
-
CONFSERVER-35047 Confluence user synchronisation create duplicated user account after user rename in the remote repository
-
- Closed
-
-
CONFSERVER-37254 User rename from Crowd create new user in Confluence
-
- Closed
-
- is caused by
-
CWD-3513 Publish UserRenamedEvent when user is renamed in LDAP
- Closed
- is related to
-
CONFSERVER-35047 Confluence user synchronisation create duplicated user account after user rename in the remote repository
-
- 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-3882 Add unique constraint on columns external_id and directory_id
- Gathering Interest
- duplicates
-
EMBCWD-993 Loading...
- links to
[CWD-3984] Rename user in external directory create new user with same external_id
Workflow | Original: Simplified Crowd Development Workflow v2 - restricted [ 1511228 ] | New: JAC Bug Workflow v3 [ 3365633 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Link | New: This issue is related to CONFCLOUD-35047 [ CONFCLOUD-35047 ] |
Workflow | Original: Simplified Crowd Development Workflow v2 [ 1393233 ] | New: Simplified Crowd Development Workflow v2 - restricted [ 1511228 ] |
Workflow | Original: Crowd Development Workflow v2 [ 700366 ] | New: Simplified Crowd Development Workflow v2 [ 1393233 ] |
Remote Link | New: This issue links to "EMBCWD-993 (Ecosystem JIRA)" [ 122675 ] |
Remote Link | Original: This issue links to "EMBCWD-993 (Ecosystem JIRA)" [ 104177 ] |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Labels | New: pse-request |
Priority | Original: Critical [ 2 ] | New: Major [ 3 ] |