This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new 731e056  [SPARK-37807][SQL] Fix a typo in HttpAuthenticationException 
message
731e056 is described below

commit 731e05672983f75ba70b10207774d29ab4ad8602
Author: Chilaka Ramakrishna <[email protected]>
AuthorDate: Tue Jan 4 23:30:20 2022 -0800

    [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 27d5575f13fe69459d7fa72cee11d4166c9e1a10)
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 .../main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
 
b/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
index 0e2f374..f0f5cdc 100644
--- 
a/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
+++ 
b/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
@@ -492,7 +492,7 @@ public class ThriftHttpServlet extends TServlet {
     // Password must be present
     if (creds[1] == null || creds[1].isEmpty()) {
       throw new HttpAuthenticationException("Authorization header received " +
-          "from the client does not contain username.");
+          "from the client does not contain password.");
     }
     return creds[1];
   }

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to