fix:s3 tests fix (#1652)

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
LeonWang0735
2026-01-29 19:35:03 +08:00
committed by GitHub
parent 6b15e727f5
commit 022e3dfc21
5 changed files with 43 additions and 11 deletions
+1 -1
View File
@@ -580,7 +580,7 @@ pub(crate) fn parse_object_lock_legal_hold(legal_hold: Option<ObjectLockLegalHol
None => String::default(),
};
let now = OffsetDateTime::now_utc();
// This is intentional behavior. Empty string represents "status cleared" which is different from "status never set". Consistent with minio
// This is intentional behavior. Empty string represents "status cleared" which is different from "status never set".
eval_metadata.insert(AMZ_OBJECT_LOCK_LEGAL_HOLD_LOWER.to_string(), status);
eval_metadata.insert(
format!("{}{}", RESERVED_METADATA_PREFIX_LOWER, "objectlock-legalhold-timestamp"),