rich7420 opened a new pull request, #11974: URL: https://github.com/apache/ozone/pull/11974
## What changes were proposed in this pull request? The S3 Gateway parses signed chunk sizes as `long` and maps overflow to `InvalidRequest`, avoiding uncaught `NumberFormatException`. Parser-detected truncation returns `IncompleteBody`, and malformed trailers return `MalformedTrailerError`. Signature/checksum error precedence and commit guards are preserved; shared Content-Length mismatch handling remains unchanged. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17476 ## How was this patch tested? - Local JDK 21: the full S3 Gateway unit suite passed 2065 cases; the final parser suites passed 170 cases, with no failures, errors or skips. Both build caches were disabled. - Restoring the base parsers caused all 54 selected regression cases to fail (50 assertion failures and 4 `NumberFormatException` errors); restoring the fix passed. - `checkstyle.sh` and module PMD passed. The configured SpotBugs 3.1.12.2 cannot analyze Java 17 class files; SpotBugs 4.8.6.8 analysis of the changed production classes reported no new findings against the base and retained one existing constructor warning. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
