iprithv opened a new pull request, #11654:
URL: https://github.com/apache/ozone/pull/11654
## What changes were proposed in this pull request?
`AuthorizationV4HeaderParser.parseSignature` was splitting the Authorization
header with `String.split(", *")` on every signed S3 request, which compiles a
regex each time.
This change splits on `','` and trims each part instead. Behavior is
unchanged for headers with or without spaces after commas (same idea as
HDDS-16749).
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-17203
## How was this patch tested?
```
mvn -pl :ozone-s3gateway -am test -Dtest=TestAuthorizationV4HeaderParser
-DskipShade -DskipRecon -DskipDocs
```
15 tests, all passed. Existing cases cover both comma+space and
comma-without-space headers.
Generated-by: Grok Build (Grok 4.5)
--
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]