[
https://issues.apache.org/jira/browse/HADOOP-14640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16088243#comment-16088243
]
Jitendra Nath Pandey edited comment on HADOOP-14640 at 7/14/17 10:52 PM:
-------------------------------------------------------------------------
This seems like a good catch by findbugs. It will cause NPE if statusLine is
null.
{code}
if (statusLine == null
|| statusLine.getStatusCode() != HttpStatus.SC_OK) {
requiresNewAuth =
(statusLine.getStatusCode() == HttpStatus.SC_UNAUTHORIZED);
{code}
was (Author: jnp):
This is a good catch by findbugs:
{code}
if (statusLine == null
|| statusLine.getStatusCode() != HttpStatus.SC_OK) {
requiresNewAuth =
(statusLine.getStatusCode() == HttpStatus.SC_UNAUTHORIZED);
{code}
stat
> Azure: Support affinity for service running on localhost and reuse SPNEGO
> hadoop.auth cookie for authorization, SASKey and delegation token generation
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-14640
> URL: https://issues.apache.org/jira/browse/HADOOP-14640
> Project: Hadoop Common
> Issue Type: Improvement
> Components: fs/azure
> Affects Versions: 2.9.0
> Reporter: Santhosh G Nayak
> Assignee: Santhosh G Nayak
> Labels: security
> Attachments: HADOOP-14640.1.patch, HADOOP-14640.2.patch,
> HADOOP-14640.3.patch
>
>
> Currently, {{WasbRemoteCallHelper}} can be configured to talk to comma
> separated list of URLs for authorization, SASKey generation and delegation
> token generation.
> To improve the performance, if service runs on the local machine, give it
> first preference over the other configured list of URLs.
> Currently, {{WasbRemoteCallHelper}} generates {{hadoop.auth}} cookie for
> every request by talking to the remote service, before making actual rest
> requests.
> The proposal is to reuse the {{hadoop.auth}} cookie for subsequent requests
> from same {{WasbRemoteCallHelper}} object until its expiry time.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]