Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-863

MongoDB: usersRoles if role exist should throw AlreadyExistsException instead of Internal Server Error

    Details

      Description

      When role already exists, It is throwing error 500

      WARNING: Resource exception: 500 Internal Server Error: "Command failed with error 11000: 'Role "1524141378@openicf" already exists' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "Role \"1524141378@openicf\" already exists", "code" : 11000, "codeName" : "DuplicateKey" }"
      org.forgerock.json.resource.InternalServerErrorException: Command failed with error 11000: 'Role "1524141378@openicf" already exists' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "Role \"1524141378@openicf\" already exists", "code" : 11000, "codeName" : "DuplicateKey" }

      It should throw AlreadyExistsException

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                petr.jurica Petr Jurica [X] (Inactive)
                Reporter:
                michal.orlik@profiq.cz Michal Orlik
                QA Assignee:
                Michal Orlik
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: