[ 
https://issues.apache.org/jira/browse/HIVE-26353?focusedWorklogId=802660&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-802660
 ]

ASF GitHub Bot logged work on HIVE-26353:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Aug/22 00:27
            Start Date: 23/Aug/22 00:27
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on PR #3403:
URL: https://github.com/apache/hive/pull/3403#issuecomment-1223364705

   This pull request has been automatically marked as stale because it has not 
had recent activity. It will be closed if no further activity occurs.
   Feel free to reach out on the [email protected] list if the patch is in 
need of reviews.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 802660)
    Time Spent: 20m  (was: 10m)

> Http auth header for NEGOTIATE is not standard
> ----------------------------------------------
>
>                 Key: HIVE-26353
>                 URL: https://issues.apache.org/jira/browse/HIVE-26353
>             Project: Hive
>          Issue Type: Bug
>            Reporter: feiwang
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The auth header for http spnego is not standard.
> The code link: 
> https://github.com/apache/hive/blob/7b3ecf617a6d46f48a3b6f77e0339fd4ad95a420/jdbc/src/java/org/apache/hive/jdbc/HttpKerberosRequestInterceptor.java#L58-L65
> {code:java}
>   @Override
>   protected void addHttpAuthHeader(HttpRequest httpRequest, HttpContext 
> httpContext) throws Exception {
>     try {
>       // Generate the service ticket for sending to the server.
>       // Locking ensures the tokens are unique in case of concurrent requests
>       kerberosLock.lock();
>       String kerberosAuthHeader = 
> HttpAuthUtils.getKerberosServiceTicket(principal, host, serverHttpUrl, 
> loggedInSubject);
>       // Set the session key token (Base64 encoded) in the headers
>       httpRequest.addHeader(HttpAuthUtils.AUTHORIZATION + ": " + 
> HttpAuthUtils.NEGOTIATE + " ", kerberosAuthHeader);
>     } catch (Exception e) {
>       throw new HttpException(e.getMessage(), e);
>     } finally {
>       kerberosLock.unlock();
>     }
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to