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

log blob deleted reason for s3 based deleted blobs

    Details

      Description

      Note the file-based blobstore explicitly logs the deleted reason when it unexpectedly encounters a soft-deleted blob:

      https://github.com/sonatype/nexus-public/blob/release-3.14.0-04/components/nexus-blobstore-file/src/main/java/org/sonatype/nexus/blobstore/file/FileBlobStore.java#L437

      Whereas the S3 blobstore logs the S3BlobAttributes:

      https://github.com/sonatype/nexus-public/blob/release-3.14.0-04/plugins/nexus-blobstore-s3/src/main/java/org/sonatype/nexus/blobstore/s3/internal/S3BlobStore.java#L321

      Unfortunately that delegates to S3PropertiesFile.toString() which just dumps the bucket and key, not the actual attributes.

      Acceptance

      The path or bucket-key pair and the attributes for an accessed soft-deleted blob shall be logged in the warning msg.

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jhill Joshua Hill
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Peter Lynch Peter Lynch
              Team:
              NXRM - Morpheus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title