You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by fe...@apache.org on 2022/06/09 13:19:34 UTC

[incubator-kyuubi] branch master updated: [KYUUBI #2820][FOLLOWUP] Fix duplicate SPNEGO typo

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

feiwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-kyuubi.git


The following commit(s) were added to refs/heads/master by this push:
     new 3bfebd24d [KYUUBI #2820][FOLLOWUP] Fix duplicate SPNEGO typo
3bfebd24d is described below

commit 3bfebd24de4cf196cc56a21a467dd4b639d34a8b
Author: Fei Wang <fw...@ebay.com>
AuthorDate: Thu Jun 9 21:19:28 2022 +0800

    [KYUUBI #2820][FOLLOWUP] Fix duplicate SPNEGO typo
    
    ### _Why are the changes needed?_
    
    Fix duplicate SPNEGO typo.
    
    ### _How was this patch tested?_
    - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
    
    - [ ] Add screenshots for manual tests if appropriate
    
    - [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request
    
    Closes #2843 from turboFei/repeat_typo.
    
    Closes #2820
    
    329fbe12 [Fei Wang] fix typo
    
    Authored-by: Fei Wang <fw...@ebay.com>
    Signed-off-by: Fei Wang <fw...@ebay.com>
---
 .../src/main/java/org/apache/kyuubi/client/KyuubiRestClient.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kyuubi-rest-client/src/main/java/org/apache/kyuubi/client/KyuubiRestClient.java b/kyuubi-rest-client/src/main/java/org/apache/kyuubi/client/KyuubiRestClient.java
index 2a53ac099..af8d8556c 100644
--- a/kyuubi-rest-client/src/main/java/org/apache/kyuubi/client/KyuubiRestClient.java
+++ b/kyuubi-rest-client/src/main/java/org/apache/kyuubi/client/KyuubiRestClient.java
@@ -198,7 +198,7 @@ public class KyuubiRestClient implements AutoCloseable {
         throw new IllegalArgumentException("hostUrl cannot be blank.");
       }
 
-      if (authHeaderMethod == AuthHeaderMethod.SPNEGO.SPNEGO && StringUtils.isBlank(spnegoHost)) {
+      if (authHeaderMethod == AuthHeaderMethod.SPNEGO && StringUtils.isBlank(spnegoHost)) {
         try {
           this.spnegoHost = new URI(hostUrl).getHost();
         } catch (Exception e) {