Chung-En Lee created HDDS-17319:
-----------------------------------
Summary: S3 Gateway returns 500 for PutObject with a non-numeric
x-amz-decoded-content-length
Key: HDDS-17319
URL: https://issues.apache.org/jira/browse/HDDS-17319
Project: Apache Ozone
Issue Type: Bug
Components: s3gateway
Reporter: Chung-En Lee
Assignee: Chung-En Lee
For a non-streaming PutObject, ObjectEndpoint#handlePutRequest calls
Long.parseLong on x-amz-decoded-content-length, so a value such as {{abc}} or
{{99999999999999999999}} throws NumberFormatException and returns 500. Amazon
S3 ignores the header for such uploads and returns 200.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]