len548 commented on code in PR #9343:
URL: https://github.com/apache/ozone/pull/9343#discussion_r2606380895


##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/signature/StringToSignProducer.java:
##########
@@ -179,6 +177,9 @@ public static String buildCanonicalRequest(
       canonicalHeaders.append(':');
       if (headers.containsKey(header)) {
         String headerValue = headers.get(header);
+        if (header.equals("content-type")) {
+          headerValue = headerValue.toLowerCase();

Review Comment:
   That is because content-type value is usually 
`application/x-www-form-urlencoded; charset=UTF-8` where UTF is uppercase while 
AWS CLI uses lowercase when it constructs a signature. Otherwise the resulted 
signature from AWS client side and one from Ozone would be different.
   



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

Reply via email to