storj / edge

Storj edge services (including multi-tenant, S3-compatible server to interact with the Storj network)
GNU Affero General Public License v3.0
54 stars 18 forks source link

PutObjectLockConfiguration on bucket without versioning enabled (error) #509

Closed NiaStorj closed 5 days ago

NiaStorj commented 1 month ago

Expected Behavior: S3: HTTP 409: InvalidBucketState: An Object Lock configuration is present on this bucket, so the versioning state cannot be changed

Actual Behavior: HTTP 403: AccessDenied: Access Denied

halkyon commented 6 days ago

This works as expected: https://review.dev.storj.io/c/storj/edge/+/15400, we also have a test already to make sure suspending versioning on an object lock enabled bucket produces the same error code. I think this should be safe to close?