aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3_list.rs
diff options
context:
space:
mode:
authortrinity-1686a <trinity.pointard@gmail.com>2022-01-18 12:22:31 +0100
committerAlex <alex@adnab.me>2022-01-18 12:22:31 +0100
commite55fa38c9995294edcdf0f7f4f95dc767b343fb5 (patch)
treed2a43ac455f87bee797a8f1caf083ab807b0d942 /src/api/s3_list.rs
parent178e35f868d3102342838f5669da44b4eb0fc4f3 (diff)
downloadgarage-e55fa38c9995294edcdf0f7f4f95dc767b343fb5.tar.gz
garage-e55fa38c9995294edcdf0f7f4f95dc767b343fb5.zip
Add date verification to presigned urls (#196)
fix #96 fix #162 by returning Forbidden instead Bad Request Co-authored-by: Trinity Pointard <trinity.pointard@gmail.com> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/196 Co-authored-by: trinity-1686a <trinity.pointard@gmail.com> Co-committed-by: trinity-1686a <trinity.pointard@gmail.com>
Diffstat (limited to 'src/api/s3_list.rs')
-rw-r--r--src/api/s3_list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/s3_list.rs b/src/api/s3_list.rs
index f991b07d..c3bc6938 100644
--- a/src/api/s3_list.rs
+++ b/src/api/s3_list.rs
@@ -121,7 +121,7 @@ pub async fn handle_list(
key: uriencode_maybe(key, query.common.urlencode_resp),
last_modified: s3_xml::Value(msec_to_rfc3339(info.last_modified)),
size: s3_xml::IntValue(info.size as i64),
- etag: s3_xml::Value(format!("\"{}\"", info.etag.to_string())),
+ etag: s3_xml::Value(format!("\"{}\"", info.etag)),
storage_class: s3_xml::Value("STANDARD".to_string()),
})
.collect(),