Files
floci/src/test/java/io/github/hectorvent
Hector Ventura 4edb6f93f6 fix(s3): return ObjectLockConfigurationNotFoundError for non-lock buckets (#971)
GetObjectLockConfiguration was returning a 200 with ObjectLockEnabled=Enabled
for every bucket regardless of whether object lock was enabled at creation time.

Real AWS returns ObjectLockConfigurationNotFoundError (HTTP 404) when the bucket
was not created with x-amz-bucket-object-lock-enabled: true.

Added an isObjectLockEnabled() guard in S3Service before returning the retention
configuration. The controller's existing try-catch routes the AwsException to
the XML error response with no additional changes needed.

Fixes #960
2026-05-20 23:43:56 -05:00
..