HADOOP-11859. PseudoAuthenticationHandler fails with httpcomponents v4.4. Contributed by Eugene Koifman.

This commit is contained in:
Jitendra Pandey 2015-04-22 09:59:12 -07:00
parent 8de6045842
commit db4419df6b
2 changed files with 8 additions and 1 deletions

View File

@ -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())) {

View File

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