Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.1.5, 6.1.7, 7.0.0-OD-02
-
6.01
-
29
-
Severity 3 - Minor
-
0
-
Description
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
Symptom:
- error thrown in the JIRA UI indicating "'<user>' does not exist"
- repeating the same step will throws random username does not exist
Step to reproduce:
- install JIRA with internal directory
- create a new Internal with Delegated Authentication directory
- migrate the users directory from internal to delegated authentication directory
- (bug) error thrown in the JIRA UI indicating "'<user>' does not exist"
- (bug) in the JIRA logs:
/plugins/servlet/embedded-crowd/directories/migrate/ [embedded.admin.directory.MigrateDirectoryUsersController] User migration failed java.lang.RuntimeException: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist at com.atlassian.crowd.embedded.admin.directory.MigrateDirectoryUsersController$1.doInTransaction(MigrateDirectoryUsersController.java:146) ... Caused by: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist at com.atlassian.jira.crowd.embedded.ofbiz.OfBizUserDao.findByName(OfBizUserDao.java:85) at com.atlassian.jira.crowd.embedded.ofbiz.OfBizDelegatingMembershipDao.addUserToGroup(OfBizDelegatingMembershipDao.java:81) at com.atlassian.crowd.directory.AbstractInternalDirectory.addUserToGroup(AbstractInternalDirectory.java:821) at com.atlassian.crowd.directory.DelegatedAuthenticationDirectory.addUserToGroup(DelegatedAuthenticationDirectory.java:805) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addUserToGroup(DirectoryManagerGeneric.java:757)
- (bug) username thrown in the error cannot login into JIRA using the password stored in LDAP
To verify:
- make sure the error is not caused by bug JRA-24889
- in the JIRA database check if the user does exist correctly in the app_user, cwd_user, cwd_membership. The SQL queries below can be use:
select * from app_user where lower_user_name='<sample_username>'; select * from cwd_user where user_name ='<sample_username>'; select * from cwd_membership where child_name ='<sample_username>'; select * from cwd_directory;
- Important note: restoring the JIRA's data into a test instance and the problem is not reproducible in the test instance.
Root Cause:
Broken Cache when creating the user in the new directory.
Attachments
Issue Links
- is related to
-
CWD-4492 user directory synchronization failed, with <user>' does not exist" error
- Long Term Backlog
- relates to
-
JRACLOUD-40375 User Directory Migration throws error
- Closed
-
RUM-62 Loading...
- is cloned by
-
JDEV-36631 Loading...
(2 mentioned in)