You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Andy Huang (Jira)" <ji...@apache.org> on 2026/10/22 11:20:00 UTC

[jira] [Assigned] (HDDS-17319) S3 Gateway returns 500 for PutObject with a non-numeric x-amz-decoded-content-length

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

Andy Huang reassigned HDDS-17319:
---------------------------------

    Assignee: Andy Huang  (was: Chung-En Lee)

> 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
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org