[ 
https://issues.apache.org/jira/browse/HDDS-17203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18130511#comment-18130511
 ] 

Siyao Meng commented on HDDS-17203:
-----------------------------------

[Jira cleanup 2026-10-22] Resolving as Implemented. The regex split was 
replaced by comma splitting and per-part trimming.

Evidence:
* https://github.com/apache/ozone/pull/11654
* 
https://github.com/apache/ozone/commit/d5c21a3dd8d2b1028aead5dfa6f15fb08081ba9e
* 
https://github.com/apache/ozone/blob/bf3829e6c8ac69ae17585585703f91426dcdf6b3/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/signature/AuthorizationV4HeaderParser.java#L81

Feel free to reopen if further work is needed.

> Avoid regex String.split when parsing SigV4 Authorization headers
> -----------------------------------------------------------------
>
>                 Key: HDDS-17203
>                 URL: https://issues.apache.org/jira/browse/HDDS-17203
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: S3
>            Reporter: Prithvi S
>            Assignee: Prithvi S
>            Priority: Major
>              Labels: pull-request-available
>
> AuthorizationV4HeaderParser.parseSignature splits the header with 
> String.split(", *") on every signed S3 request. That compiles a regex each 
> time.
> Split on ',' and trim the parts instead, same idea as HDDS-16749. Behavior 
> stays the same.



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