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

Cannot create s3 blobstore due to incorrect permissions check

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.24.0, 3.26.1
    • Fix Version/s: None
    • Component/s: S3
    • Labels:

      Description

      I have multiple S3 blob stores that were created prior to 3.19. They work perfectly. Attempts to create another blob store using the same bucket but a different prefix fail with error "Bucket exists but is not owned by you.". This is true, but should not prevent the blobstore from being created.

      This is probably related to NEXUS-21452

      ERROR [qtp44118168-155] admin org.sonatype.nexus.extdirect.internal.ExtDirectExceptionHandler - Failed to invoke action method: coreui_Blobstore.create, java-method: org.sonatype.nexus.coreui.BlobStoreComponent.create
      org.sonatype.nexus.blobstore.s3.internal.S3BlobStoreException: Bucket exists but is not owned by you.
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
      	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:250)
      	at org.sonatype.nexus.blobstore.s3.internal.S3BlobStoreException.bucketOwnershipError(S3BlobStoreException.groovy:80)
      	at org.sonatype.nexus.blobstore.s3.internal.BucketManager.checkBucketOwner(BucketManager.java:247)
      	at org.sonatype.nexus.blobstore.s3.internal.BucketManager.checkPermissions(BucketManager.java:221)
      	at org.sonatype.nexus.blobstore.s3.internal.BucketManager.prepareStorageLocation(BucketManager.java:73)
      	at org.sonatype.nexus.blobstore.s3.internal.S3BlobStore.doInit(S3BlobStore.java:485)
      	at org.sonatype.nexus.blobstore.BlobStoreSupport.init(BlobStoreSupport.java:245)
      	at org.sonatype.nexus.repository.internal.blobstore.BlobStoreManagerImpl.create(BlobStoreManagerImpl.java:196)

        Attachments

        1. screenshot-1.png
          screenshot-1.png
          47 kB
        2. screenshot-2.png
          screenshot-2.png
          66 kB
        3. screenshot-3.png
          screenshot-3.png
          47 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              measuresforjustice Measures for Justice
              Last Updated By:
              Pablo Rodriguez Nava Pablo Rodriguez Nava
              Votes:
              4 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title