adoroszlai commented on code in PR #10072:
URL: https://github.com/apache/ozone/pull/10072#discussion_r3071472408
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/signature/StringToSignProducer.java:
##########
@@ -114,7 +115,7 @@ public static String createSignatureBase(
strToSign.append(signatureInfo.getAlgorithm()).append(NEWLINE);
if (signatureInfo.getDateTime() == null) {
LOG.error("DateTime Header not found.");
- throw S3_AUTHINFO_CREATION_ERROR;
+ throw newError(S3_AUTHINFO_CREATION_ERROR, null, null);
Review Comment:
Thanks @peterxcli for the review. I added the `null` parameters to directly
call the "real" `newError` method (which does the actual work). HDDS-15000
describes the problem with the overloaded method.
--
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]