kerneltime commented on code in PR #4473:
URL: https://github.com/apache/ozone/pull/4473#discussion_r1184447127
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/signature/AuthorizationV4HeaderParser.java:
##########
@@ -168,47 +168,50 @@ private Credential parseCredentials(String credential)
if (credentialObj.getAccessKeyID().isEmpty()) {
throw new MalformedResourceException(
- "AWS access id shouldn't be empty. credential: " + credential,
- authHeader);
+ "AWS access id is empty. credential: " + credential, authHeader);
}
if (credentialObj.getAwsRegion().isEmpty()) {
throw new MalformedResourceException(
- "AWS region shouldn't be empty. credential: " + credential,
- authHeader);
+ "AWS region is empty. credential: " + credential, authHeader);
}
- if (credentialObj.getAwsRequest().isEmpty()) {
+ if (credentialObj.getAwsRequest().isEmpty() ||
Review Comment:
We can do it in a separate Jira
--
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]