Gargi-jais11 opened a new pull request, #12094: URL: https://github.com/apache/ozone/pull/12094
## What changes were proposed in this pull request? `POST /?delete` accepts a Content-MD5 that does not match the delete XML and still deletes the key. AWS requires `Content-MD5` on DeleteObjects. A mismatch must be HTTP **400 BadDigest**, and the object must stay. Ozone returns HTTP 200, lists the key under Deleted, and the next HeadObject is 404. Content-MD5 is already checked on PutObject and UploadPart. A wrong value there is BadDigest and the object is not stored. `BucketEndpoint.multiDelete` never reads the header. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17835 ## How was this patch tested? Added unit tests and integration test. As well as verified this manually. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
