Chung-En Lee created HDDS-17306:
-----------------------------------

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


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]

Reply via email to