[
https://issues.apache.org/jira/browse/HDDS-17306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chung-En Lee updated HDDS-17306:
--------------------------------
Description: RangeHeaderParserUtil#parseRangeHeader calls Long.parseLong on
unbounded digit strings, so {{Range: bytes=0-99999999999999999999}} throws
NumberFormatException and GetObject and HeadObject return 500. Amazon S3
ignores such a Range and returns the whole object with 200; do the same and add
unit tests. (was: 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.)
> 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 calls Long.parseLong on unbounded
> digit strings, so {{Range: bytes=0-99999999999999999999}} throws
> NumberFormatException and GetObject and HeadObject return 500. Amazon S3
> ignores such a Range and returns the whole object with 200; do the same 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]