adoroszlai opened a new pull request, #7195: URL: https://github.com/apache/ozone/pull/7195
## What changes were proposed in this pull request? When submitting `CompleteMultipartUpload` request without parts, `CompleteMultipartUploadRequestUnmarshaller` encounters `SAXParseException`, which it converts to error response with the default `500 Internal Server Error` code. We can use the more specific `InvalidRequest` code instead. Similar problem is fixed in two other unmarshallers. Additionally, we can avoid the `SAXParseException` by checking for empty input and returning more specific error message (`You must specify at least one part`) for empty `CompleteMultipartUpload` request. https://issues.apache.org/jira/browse/HDDS-11457 ## How was this patch tested? Tweaked existing robot test to verify this case. CI: https://github.com/adoroszlai/ozone/actions/runs/10846339715 -- 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: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org