mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-31 17:28:13 +00:00
log incorrect multipart completion body
This commit is contained in:
@@ -303,8 +303,11 @@ pub async fn handle_complete_multipart_upload(
|
|||||||
let body = req_body.collect().await?;
|
let body = req_body.collect().await?;
|
||||||
|
|
||||||
let body_xml = roxmltree::Document::parse(std::str::from_utf8(&body)?)?;
|
let body_xml = roxmltree::Document::parse(std::str::from_utf8(&body)?)?;
|
||||||
let body_list_of_parts = parse_complete_multipart_upload_body(&body_xml)
|
let body_list_of_parts =
|
||||||
.ok_or_bad_request("Invalid CompleteMultipartUpload XML")?;
|
parse_complete_multipart_upload_body(&body_xml).ok_or_bad_request(format!(
|
||||||
|
"Invalid CompleteMultipartUpload XML:\n{}",
|
||||||
|
String::from_utf8_lossy(&body)
|
||||||
|
))?;
|
||||||
debug!(
|
debug!(
|
||||||
"CompleteMultipartUpload list of parts: {:?}",
|
"CompleteMultipartUpload list of parts: {:?}",
|
||||||
body_list_of_parts
|
body_list_of_parts
|
||||||
|
|||||||
Reference in New Issue
Block a user