Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9106

Improve error message when a user tries to create an already existing user or group

    Details

      Description

      Current behavior
      When someone submits a user (or group) which does already exist, then a SQL Integretiy Constaint Violation Exception is thrown.

      Desired behavior
      Since this is effectively a validation error, it would be better if the user would get a more appropriate error.

      Example Error:

      Server Error : ENGINE-03004 Exception while executing Database Operation 'INSERT UserEntity[test]' with message ' ### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (XYZ.SYS_C00231904) violated ### The error may involve org.camunda.bpm.engine.impl.persistence.entity.UserEntity.insertUser-Inline ### The error occurred while setting parameters ### SQL: insert into ACT_ID_USER (ID_, FIRST_, LAST_, EMAIL_, PWD_, SALT_, REV_) values ( ?, ?, ?, ?, ?, ?, 1 ) ### Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (XYZ.SYS_C00231904) violated '. Flush summary: [ INSERT UserEntity[test] ]
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              michael.schoettes Michael Schoettes
              Reporter:
              roman.smirnov Smirnov Roman
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development