HDDS-705. addendum patch to fix find bug issue. Contributed by Bharat Viswanadham.

(cherry picked from commit f6498af0d7618c580ecfbc77aff9946362efe4f3)
This commit is contained in:
Bharat Viswanadham 2018-10-22 10:17:12 -07:00
parent e26f26c4c2
commit 51d2273e1a
2 changed files with 4 additions and 2 deletions

View File

@ -185,8 +185,10 @@ public String parseUsername(
LOG.info("Auth header string {}", auth);
if (auth == null) {
// In this case, adding resource as Authorization, need to revisit in
// future if it needs to be changed.
throw S3ErrorTable
.newError(S3ErrorTable.MALFORMED_HEADER, auth);
.newError(S3ErrorTable.MALFORMED_HEADER, "Authorization");
}
String userName;

View File

@ -50,7 +50,7 @@ private S3ErrorTable() {
"is invalid.", HTTP_NOT_FOUND);
public static final OS3Exception NO_SUCH_KEY = new OS3Exception(
"NoSuchObject", "The specified key does not exist", HTTP_NOT_FOUND);
"NoSuchKey", "The specified key does not exist", HTTP_NOT_FOUND);
/**
* Create a new instance of Error.