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

POST /v1/blobstores/s3 fails with 500 internal error

    Details

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

      Description

      When creating S3 bucket not all fields are validated and some invalid values can causes NXRM to fail with 500 internal error.
      Sample input:

      {
          "bucketConfiguration": {
              "bucket": {
                  "expiration": "5",
                  "name": "<string>",
                  "region": "<string>",
                  "prefix": "<string>"
              },
              "encryption": {
                  "encryptionType": "<string>",
                  "encryptionKey": "<string>"
              },
              "bucketSecurity": {
                  "accessKeyId": "<string>",
                  "secretAccessKey": "<string>",
                  "role": "<string>",
                  "sessionToken": "<string>"
              },
              "advancedBucketConnection": {
                  "endpoint": "<string>",
                  "signerType": "<string>",
                  "forcePathStyle": "true"
              }
          },
          "name": "<string>"
      }
      

      Output:
      ERROR: (ID 1964fba3-0bfa-44f5-8475-9799f4561b8f) org.sonatype.nexus.blobstore.api.BlobStoreException: Unable to initialize blob store bucket: <string>, Cause: unknown signer type: <string>

      Expected 400 bad request with meaningful error.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dsawa Dawid Sawa
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title