You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2022/01/05 07:33:11 UTC

[spark] branch branch-3.1 updated: [SPARK-37807][SQL] Fix a typo in HttpAuthenticationException message

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

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


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

commit 3bcd036367afc550065f6049d6059b3b92729267
Author: Chilaka Ramakrishna <ra...@nference.net>
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 <ra...@nference.net>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
    (cherry picked from commit 27d5575f13fe69459d7fa72cee11d4166c9e1a10)
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 .../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 0cfa84d..be06206 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
@@ -493,7 +493,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: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org