Skip to content

Commit 3bcd036

Browse files
Chilaka Ramakrishnadongjoon-hyun
Chilaka Ramakrishna
authored andcommitted
[SPARK-37807][SQL] Fix a typo in HttpAuthenticationException message
### What changes were proposed in this pull request? The error message is not correct, So we update the error message. ### Why are the changes needed? The exception message when password is left empty in HTTP mode of hive thrift server is not correct.. Updated the text to reflect it. Please check JIRA ISSUE: https://issues.apache.org/jira/browse/SPARK-37807 ### Does this PR introduce _any_ user-facing change? Yes, The exception messages in HiveServer2 is changed. ### How was this patch tested? This was tested manually Closes #35097 from RamakrishnaChilaka/feature/error_string_fix. Authored-by: Chilaka Ramakrishna <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 27d5575) Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 70d4fb1 commit 3bcd036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ private String getPassword(HttpServletRequest request, String authType)
493493
// Password must be present
494494
if (creds[1] == null || creds[1].isEmpty()) {
495495
throw new HttpAuthenticationException("Authorization header received " +
496-
"from the client does not contain username.");
496+
"from the client does not contain password.");
497497
}
498498
return creds[1];
499499
}

0 commit comments

Comments
 (0)