Details
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.