Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-25105

HTTP 500 response when attempting to delete LDAP user via REST API

    XMLWordPrintable

    Details

    • Notability:
      4

      Description

      Attempting to delete an LDAP user via the REST API returns a HTTP 500 response and the following exception is thrown:

      Unexpected exception: java.lang.UnsupportedOperationExceptionUnexpected exception: java.lang.UnsupportedOperationExceptionjava.lang.UnsupportedOperationException: null at org.sonatype.nexus.security.user.AbstractReadOnlyUserManager.deleteUser(AbstractReadOnlyUserManager.java:43) at org.sonatype.nexus.security.internal.DefaultSecuritySystem.deleteUser(DefaultSecuritySystem.java:300) at org.sonatype.nexus.security.internal.rest.UserApiResource.deleteUser(UserApiResource.java:166)

      To reproduce, configure Nexus with LDAP and then via the DELETEĀ /v1/security/users/{userId} REST endpoint attempt to delete an LDAP userid.

      Expected

      As a user from the LDAP realm/source cannot be deleted this way, Nexus should return a more suitable response i.e a 4xx response maybe. Furthermore the logging should be improved to indicate that an LDAP user cannot be deleted.

        Attachments

          Activity

            People

            Assignee:
            aivasenko Andrew Ivasenko
            Reporter:
            hardeepn Hardeep Nagra
            Last Updated By:
            Michael Prescott Michael Prescott
            Team:
            NXRM - Rocket Raccoon
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title