-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
3.5
-
None
Problem.
This appear to only affects Oracle - When editing the User or Group DN, Confluence will return a System Error instead.
The following is logged:
2011-07-31 11:02:22,704 ERROR [http-8080-4] [atlassian.plugin.servlet.ServletModuleContainerServlet] service Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert collection rows: [com.atlassian.crowd.model.directory.DirectoryImpl.attributes#1146881]; SQL []; ORA-00001: unique constraint (CONFLUENCE.SYS_C0021643) violated ; nested exception is java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (CONFLUENCE.SYS_C0021643) violated -- referer: http://paulaner.sydney.atlassian.com:8080/plugins/servlet/embedded-crowd/configure/ldap/ | url: /plugins/servlet/embedded-crowd/configure/ldap/ | userName: confluence-admin org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert collection rows: [com.atlassian.crowd.model.directory.DirectoryImpl.attributes#1146881]; SQL []; ORA-00001: unique constraint (CONFLUENCE.SYS_C0021643) violated ; nested exception is java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (CONFLUENCE.SYS_C0021643) violated
Workaround
- Login with internal admin account
- Go to Confluence Admin > User Directories, and edit the LDAP directory
- Take screenshots of all the settings
- Disable the LDAP User Directory
- Recreate the directory from scratch with the same settings
- If this is successful, Remove the old LDAP directory
Alternatively, you can modify settings manually in the database. The settings are all stored in the cwd_directory_attribute. This is NOT recommended.
- duplicates
-
CONFSERVER-22469 Editing "User Directories" configuration is not possible for ORACLE DB user due to DataIntegrityViolationException
-
- Closed
-
-
CONFSERVER-22242 Impossible to empty Additional User DN or Additional Group DN once filled in
-
- Closed
-
- is duplicated by
-
CONFSERVER-24645 Getting System Error page when trying to edit User Directory or adding "Default Group Memberships" in Confluence 3.5.9 or higher for Oracle users
-
- Closed
-
I have tried this approach and successfully created a new User Directory with the updated "Additional User DN". However, under the new User Directory (when I disable the original), none of the users have maintained their Group membership.