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

[jira] [Updated] (HDDS-17306) S3 Gateway fails with NumberFormatException for Range values exceeding Long.MAX_VALUE

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

ASF GitHub Bot updated HDDS-17306:
----------------------------------
    Labels: pull-request-available  (was: )

> S3 Gateway fails with NumberFormatException for Range values exceeding Long.MAX_VALUE
> -------------------------------------------------------------------------------------
>
>                 Key: HDDS-17306
>                 URL: https://issues.apache.org/jira/browse/HDDS-17306
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: s3gateway
>            Reporter: Chung-En Lee
>            Assignee: Chung-En Lee
>            Priority: Minor
>              Labels: pull-request-available
>
> RangeHeaderParserUtil#parseRangeHeader and UploadPartCopy call Long.parseLong on unbounded digit strings, so {{Range: bytes=0-99999999999999999999}} throws NumberFormatException and GET, HEAD and UploadPartCopy return 500. Treat overflowing values as invalid ranges, matching AWS, and add unit tests.



--
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