From 5c900b522e70b512498ab7689f56eb1c5e4b963f Mon Sep 17 00:00:00 2001 From: cnauroth Date: Wed, 29 Oct 2014 11:18:44 -0700 Subject: [PATCH] HADOOP-11068. Match hadoop.auth cookie format to jetty output. Contributed by Gregory Chanan. --- .../security/authentication/server/AuthenticationFilter.java | 3 +-- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java index 47cf54c606..a070345a71 100644 --- a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java +++ b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java @@ -589,9 +589,8 @@ public static void createAuthCookie(HttpServletResponse resp, String token, StringBuilder sb = new StringBuilder(AuthenticatedURL.AUTH_COOKIE) .append("="); if (token != null && token.length() > 0) { - sb.append(token); + sb.append("\"").append(token).append("\""); } - sb.append("; Version=1"); if (path != null) { sb.append("; Path=").append(path); diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 01e8fec72f..cd5647f590 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -1021,6 +1021,9 @@ Release 2.6.0 - UNRELEASED HADOOP-11243. SSLFactory shouldn't allow SSLv3. (Wei Yan via kasha) + HADOOP-11068. Match hadoop.auth cookie format to jetty output. + (Gregory Chanan via cnauroth) + Release 2.5.1 - 2014-09-05 INCOMPATIBLE CHANGES