Browse Source

HADOOP-11068. Match hadoop.auth cookie format to jetty output. Contributed by Gregory Chanan.

(cherry picked from commit 5c900b522e70b512498ab7689f56eb1c5e4b963f)
(cherry picked from commit b4446cb3704439c5b9e6e420bb54dfe2d95f5b19)
cnauroth 10 năm trước cách đây
mục cha
commit
de1044f48d

+ 1 - 2
hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java

@@ -589,9 +589,8 @@ public class AuthenticationFilter implements Filter {
     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);

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -647,6 +647,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