-
Bug
-
Resolution: Obsolete
-
Low
-
None
-
2.4.2
-
None
-
None
-
Severity 3 - Minor
-
If you change the case of a username in LDAP, the next time the directory syncs, Crowd will throw this error about a duplicate entry in the cwd_membership table, and the user will disappear from the directory cache:
2012-05-25 18:07:26,433 scheduler_Worker-1 ERROR [org.hibernate.util.JDBCExceptionReporter] Batch entry 0 insert into cwd_membership (parent_id, child_id, membership_type, group_type, parent_name, lower_parent_name, child_name, lower_child_name, directory_id, id) values ('720898', '65545', 'GROUP_USER', 'GROUP', 'Durarara', 'durarara', 'celty', 'celty', '32770', '786433') was aborted. Call getNextException to see the cause. 2012-05-25 18:07:26,433 scheduler_Worker-1 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: 23505 2012-05-25 18:07:26,433 scheduler_Worker-1 ERROR [org.hibernate.util.JDBCExceptionReporter] ERROR: duplicate key value violates unique constraint "cwd_membership_parent_id_key" 2012-05-25 18:07:26,434 scheduler_Worker-1 ERROR [hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:254)
In this example, user 'celty' was changed to user 'CeltY' when the error occurred.
The next time the directory syncs, the username will not exist in the database, so they will be added with the new casing of the username, however, there is no error in the UI or indication that this happened, so to the end user, it simply appears as failed logins to the applications backed by Crowd.
- relates to
-
JRACLOUD-65853 Upgrade Crowd to 2.8.3+
-
- Closed
-
[CWD-2842] Duplicate error when username case is changed in LDAP and user disappears from the directory
Workflow | Original: Simplified Crowd Development Workflow v2 - restricted [ 1510970 ] | New: JAC Bug Workflow v3 [ 3365842 ] |
Symptom Severity | Original: Minor [ 14432 ] | New: Severity 3 - Minor [ 15832 ] |
Resolution | New: Obsolete [ 11 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Link | New: This issue relates to JRACLOUD-43968 [ JRACLOUD-43968 ] |
Symptom Severity | New: Minor [ 14432 ] |
Workflow | Original: Simplified Crowd Development Workflow v2 [ 1392628 ] | New: Simplified Crowd Development Workflow v2 - restricted [ 1510970 ] |
Workflow | Original: Crowd Development Workflow v2 [ 387351 ] | New: Simplified Crowd Development Workflow v2 [ 1392628 ] |
Remote Link | Original: This issue links to "Page (Extranet)" [ 112841 ] | New: This issue links to "Page (Extranet)" [ 112841 ] |
Remote Link | New: This issue links to "Page (Extranet)" [ 112841 ] |