mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
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