[
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: [email protected]
For additional commands, e-mail: [email protected]