Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-22379

Need validatior on User Directory screen- Will allow you to attempt to create a directory with duplicate name.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • None
    • None

    Description

      Set priority to major, due to seriousness of the state it leaves you in:

      Scenario-
      1. Create 1 external directory named 'Directory One' (arbitrary name. Type of directory does not matter).
      2. Create a second directory also named 'Directory One'. Save.

      Expected behavior-
      Give an error of some kind reminding you that there is already a 'Directory One' and instruct you to create one of a different name.

      Actual Behavior-
      Oops error on User directory, as well as any Manage Users/Groups screen

      Error in Log

      2011-04-21 12:54:05,315 ERROR [http-8080-1] [sf.hibernate.util.JDBCExceptionReporter] logExceptions Violation of UNIQUE KEY constraint 'UQ__cwd_directory__3C69FB99'. Cannot insert duplicate key in object 'dbo.cwd_directory'.
       -- referer: http://localhost:8080/plugins/servlet/embedded-crowd/configure/ldap/ | url: /plugins/servlet/embedded-crowd/configure/ldap/ | userName: admin
      2011-04-21 12:54:05,318 ERROR [http-8080-1] [sf.hibernate.impl.SessionImpl] execute Could not synchronize database state with session
       -- referer: http://localhost:8080/plugins/servlet/embedded-crowd/configure/ldap/ | url: /plugins/servlet/embedded-crowd/configure/ldap/ | userName: admin
      2011-04-21 12:54:05,321 ERROR [http-8080-1] [atlassian.plugin.servlet.ServletModuleContainerServlet] service Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert: [com.atlassian.crowd.model.directory.DirectoryImpl#327683]; SQL []; Violation of UNIQUE KEY constraint 'UQ__cwd_directory__3C69FB99'. Cannot insert duplicate key in object 'dbo.cwd_directory'.; nested exception is java.sql.SQLException: Violation of UNIQUE KEY constraint 'UQ__cwd_directory__3C69FB99'. Cannot insert duplicate key in object 'dbo.cwd_directory'.
       -- referer: http://localhost:8080/plugins/servlet/embedded-crowd/configure/ldap/ | url: /plugins/servlet/embedded-crowd/configure/ldap/ | userName: admin
      org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert: [com.atlassian.crowd.model.directory.DirectoryImpl#327683]; SQL []; Violation of UNIQUE KEY constraint 'UQ__cwd_directory__3C69FB99'. Cannot insert duplicate key in object 'dbo.cwd_directory'.; nested exception is java.sql.SQLException: Violation of UNIQUE KEY constraint 'UQ__cwd_directory__3C69FB99'. Cannot insert duplicate key in object 'dbo.cwd_directory'.
              at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583)
      
      

      Workaround - Restart, or flush caches from Cache Statistics

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              twong Tim Wong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: