This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new e20b195 HADOOP-15681. AuthenticationFilter should generate valid date
format for Set-Cookie header regardless of default Locale. Contributed by Cao
Manh Dat.
e20b195 is described below
commit e20b19543ba148cf0242884a3e553ad2f39421b3
Author: Wei-Chiu Chuang <[email protected]>
AuthorDate: Thu Aug 1 17:34:56 2019 -0700
HADOOP-15681. AuthenticationFilter should generate valid date format for
Set-Cookie header regardless of default Locale. Contributed by Cao Manh Dat.
---
.../hadoop/security/authentication/server/AuthenticationFilter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 5aeddac..94d11f48 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
@@ -681,7 +681,7 @@ public class AuthenticationFilter implements Filter {
if (expires >= 0 && isCookiePersistent) {
Date date = new Date(expires);
SimpleDateFormat df = new SimpleDateFormat("EEE, " +
- "dd-MMM-yyyy HH:mm:ss zzz");
+ "dd-MMM-yyyy HH:mm:ss zzz", Locale.US);
df.setTimeZone(TimeZone.getTimeZone("GMT"));
sb.append("; Expires=").append(df.format(date));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]