You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2026/10/10 04:49:00 UTC
[jira] [Resolved] (HDDS-16749) Avoid regex compilation when splitting canonical URIs for S3 signatures
[ https://issues.apache.org/jira/browse/HDDS-16749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Siyao Meng resolved HDDS-16749.
-------------------------------
Fix Version/s: 2.3.0
Resolution: Fixed
> Avoid regex compilation when splitting canonical URIs for S3 signatures
> -----------------------------------------------------------------------
>
> Key: HDDS-16749
> URL: https://issues.apache.org/jira/browse/HDDS-16749
> Project: Apache Ozone
> Issue Type: Improvement
> Reporter: Huang Kuan Hao
> Assignee: Huang Kuan Hao
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.3.0
>
>
> StringToSignProducer compiles the same slash regex for each canonical request. Use the existing StringUtils.splitPreserveAllTokens helper to avoid regex compilation and remove the custom splitter, preserving empty path segments and signature behavior.
> Before/after verification produced identical canonical requests and strings to sign across 112,008 GET/PUT cases. All 68 signature tests pass. JMH of buildCanonicalRequest showed about 556–664 fewer allocated bytes per operation for the tested paths.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org