mirror of
https://github.com/versity/versitygw.git
synced 2026-09-22 07:54:14 +00:00
* fix: omit ObjectLockConfiguration Rule when there is no default retention ParseBucketLockConfigurationOutput always set Rule, so a bucket with object lock enabled and no default retention answered GET ?object-lock with an empty <Rule></Rule>. AWS S3 omits the element, and the AWS SDK v2 clients that read the rule from it follow the empty element with a malformed request. Fixes #2397 * test: cover GetObjectLockConfiguration with no default retention in the integration suite and drop the stale non-nil Rule expectation from the controller unit test --------- Co-authored-by: Tung Lam <lamphamabtung96@gmail.com>