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

Blob store named after a blob store type cannot be deleted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.30.0
    • Fix Version/s: None
    • Component/s: Blobstore
    • Labels:

      Description

      While testing NEXUS-22057 i noticed that if i name a blobstore using a blobstore type (i.e. 'file' or 'azure' etc) then i can no longer DELETE that blobstore, as it seems to be getting caught in the wrong REST endpoint

      request.log

      127.0.0.1 - admin [13/Jul/2021:09:24:38 -0400] "DELETE /service/rest/v1/blobstores/azure?_dc=1626182678593 HTTP/1.1" 405 - 0 10 "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0" [qtp416326547-118]
      

      Seems the problem is that we are hitting these endpoints, which don't have a delete (this azure one for example, note the path conflicts with generic blobstore path and appends /azure which is treated as blobstore name field in the generic api) https://github.com/sonatype/nexus-internal/blob/f5f4cf18f1ae3950c1a6bbe4f2cdf515fd0ad8cf/private/plugins/nexus-blobstore-azure-cloud/src/main/java/com/sonatype/nexus/blobstore/azure/rest/internal/AzureBlobStoreApiResourceV1.java#L30

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dbradicich Damian Bradicich
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title