You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ay...@apache.org on 2020/02/07 19:59:46 UTC
[hadoop] branch trunk updated: HDFS-15136. LOG flooding in secure
mode when Cookies are not set in request header. Contributed by
Renukaprasad C
This is an automated email from the ASF dual-hosted git repository.
ayushsaxena 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 23787e4 HDFS-15136. LOG flooding in secure mode when Cookies are not set in request header. Contributed by Renukaprasad C
23787e4 is described below
commit 23787e4bddc84f576daa1299f5a99c8cc753aecb
Author: Ayush Saxena <ay...@apache.org>
AuthorDate: Sat Feb 8 01:17:59 2020 +0530
HDFS-15136. LOG flooding in secure mode when Cookies are not set in request header. Contributed by Renukaprasad C
---
.../hadoop/security/authentication/client/AuthenticatedURL.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/AuthenticatedURL.java b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/AuthenticatedURL.java
index 1093d8a..4884006 100644
--- a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/AuthenticatedURL.java
+++ b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/AuthenticatedURL.java
@@ -99,7 +99,10 @@ public class AuthenticatedURL {
cookies = HttpCookie.parse(header);
} catch (IllegalArgumentException iae) {
// don't care. just skip malformed cookie headers.
- LOG.debug("Cannot parse cookie header: " + header, iae);
+ // When header is empty - "Cannot parse cookie header, header = ,
+ // reason = Empty cookie header string"
+ LOG.debug("Cannot parse cookie header, header = {}, reason = {} ",
+ header, iae.getMessage());
continue;
}
for (HttpCookie cookie : cookies) {
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org