[ 
https://issues.apache.org/jira/browse/HDDS-17319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Doroszlai resolved HDDS-17319.
-------------------------------------
    Fix Version/s: 2.3.0
       Resolution: Fixed

Bug was fixed in HDDS-17480, this change added two new test cases.

> 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: Andy Huang
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.3.0
>
>
> 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]

Reply via email to