You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by su...@apache.org on 2015/11/24 17:06:06 UTC

knox git commit: KNOX-592 remove cookies only when SPNEGO negotiation starts. Patch contributed by Jeffrey Rodriguez

Repository: knox
Updated Branches:
  refs/heads/v0.6.0 2e71b58ad -> 68db3a30e


KNOX-592 remove cookies only when SPNEGO negotiation starts. Patch contributed by Jeffrey Rodriguez


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/68db3a30
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/68db3a30
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/68db3a30

Branch: refs/heads/v0.6.0
Commit: 68db3a30e0dff4226ea9833bd4c553c4eaad59ed
Parents: 2e71b58
Author: Sumit Gupta <su...@apache.org>
Authored: Tue Nov 24 10:49:58 2015 -0500
Committer: Sumit Gupta <su...@apache.org>
Committed: Tue Nov 24 10:49:58 2015 -0500

----------------------------------------------------------------------
 .../java/org/apache/hadoop/gateway/dispatch/DefaultDispatch.java    | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/68db3a30/gateway-spi/src/main/java/org/apache/hadoop/gateway/dispatch/DefaultDispatch.java
----------------------------------------------------------------------
diff --git a/gateway-spi/src/main/java/org/apache/hadoop/gateway/dispatch/DefaultDispatch.java b/gateway-spi/src/main/java/org/apache/hadoop/gateway/dispatch/DefaultDispatch.java
index 8165df5..ba10ab1 100644
--- a/gateway-spi/src/main/java/org/apache/hadoop/gateway/dispatch/DefaultDispatch.java
+++ b/gateway-spi/src/main/java/org/apache/hadoop/gateway/dispatch/DefaultDispatch.java
@@ -213,7 +213,6 @@ public class DefaultDispatch extends AbstractGatewayDispatch {
    protected HttpResponse executeKerberosDispatch(HttpUriRequest outboundRequest,
                                                   HttpClient client) throws IOException {
       HttpResponse inboundResponse;
-      outboundRequest.removeHeaders(COOKIE);
       String appCookie = appCookieManager.getCachedAppCookie();
       if (appCookie != null) {
          outboundRequest.addHeader(new BasicHeader(COOKIE, appCookie));