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 ji...@apache.org on 2015/04/22 19:00:45 UTC
hadoop git commit: HADOOP-11859. PseudoAuthenticationHandler fails
with httpcomponents v4.4. Contributed by Eugene Koifman.
Repository: hadoop
Updated Branches:
refs/heads/trunk fad9d7e85 -> 1f4767c7f
HADOOP-11859. PseudoAuthenticationHandler fails with httpcomponents v4.4. Contributed by Eugene Koifman.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/1f4767c7
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/1f4767c7
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/1f4767c7
Branch: refs/heads/trunk
Commit: 1f4767c7f2d1fdd23954c16e903acd2dca78a1e1
Parents: fad9d7e
Author: Jitendra Pandey <ji...@apache.org>
Authored: Wed Apr 22 09:59:12 2015 -0700
Committer: Jitendra Pandey <ji...@apache.org>
Committed: Wed Apr 22 10:00:14 2015 -0700
----------------------------------------------------------------------
.../authentication/server/PseudoAuthenticationHandler.java | 6 +++++-
hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++
2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/1f4767c7/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/PseudoAuthenticationHandler.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/PseudoAuthenticationHandler.java b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/PseudoAuthenticationHandler.java
index 50f0cf1..19947aa 100644
--- a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/PseudoAuthenticationHandler.java
+++ b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/PseudoAuthenticationHandler.java
@@ -142,7 +142,11 @@ public class PseudoAuthenticationHandler implements AuthenticationHandler {
}
private String getUserName(HttpServletRequest request) {
- List<NameValuePair> list = URLEncodedUtils.parse(request.getQueryString(), UTF8_CHARSET);
+ String queryString = request.getQueryString();
+ if(queryString == null || queryString.length() == 0) {
+ return null;
+ }
+ List<NameValuePair> list = URLEncodedUtils.parse(queryString, UTF8_CHARSET);
if (list != null) {
for (NameValuePair nv : list) {
if (PseudoAuthenticator.USER_NAME.equals(nv.getName())) {
http://git-wip-us.apache.org/repos/asf/hadoop/blob/1f4767c7/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index a6814f8..0ba1cdd 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -533,6 +533,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-11846 TestCertificateUtil.testCorruptPEM failing on Jenkins JDK8.
(Larry McCay via stevel)
+ HADOOP-11859. PseudoAuthenticationHandler fails with httpcomponents v4.4.
+ (Eugene Koifman via jitendra)
+
Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES