You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ch...@apache.org on 2026/10/22 08:46:25 UTC
(ozone) branch master updated: HDDS-17203. Avoid regex String.split in AuthorizationV4HeaderParser.parseSignature (#11654)
This is an automated email from the ASF dual-hosted git repository.
chungen0126 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new d5c21a3dd8d HDDS-17203. Avoid regex String.split in AuthorizationV4HeaderParser.parseSignature (#11654)
d5c21a3dd8d is described below
commit d5c21a3dd8d2b1028aead5dfa6f15fb08081ba9e
Author: Prithvi S <pr...@gmail.com>
AuthorDate: Thu Oct 22 14:16:18 2026 +0530
HDDS-17203. Avoid regex String.split in AuthorizationV4HeaderParser.parseSignature (#11654)
Signed-off-by: prithvi <pr...@gmail.com>
---
.../hadoop/ozone/s3/signature/AuthorizationV4HeaderParser.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/signature/AuthorizationV4HeaderParser.java b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/signature/AuthorizationV4HeaderParser.java
index 6382eeae56a..2ea8675a336 100644
--- a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/signature/AuthorizationV4HeaderParser.java
+++ b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/signature/AuthorizationV4HeaderParser.java
@@ -78,7 +78,10 @@ public SignatureInfo parseSignature() throws MalformedResourceException {
}
//split the value parts of the authorization header
- String[] split = authHeader.substring(firstSep + 1).trim().split(", *");
+ String[] split = authHeader.substring(firstSep + 1).trim().split(",");
+ for (int i = 0; i < split.length; i++) {
+ split[i] = split[i].trim();
+ }
if (split.length != 3) {
throw new MalformedResourceException(authHeader);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org