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

Deleting a role takes a long time when there are a large number of role mappings

    XMLWordPrintable

    Details

    • Notability:
      3

      Description

      Deleting a role from Nexus Repo can take a very long time if there are a large number of role mappings. The reason for this is that we iterate over every single role mapping looking for the now deleted role, so it can be removed from the mapping:

      https://github.com/sonatype/nexus-public/blob/release-3.23.0-03/components/nexus-security/src/main/java/org/sonatype/nexus/security/internal/SecurityConfigurationCleanerImpl.java#L96

      Performance could be improved by running a database query to find only the role mappings that contain the deleted role.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title