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

(cherry picked from commit db4419df6b)
This commit is contained in:
Kihwal Lee 2016-12-09 11:05:04 -06:00
parent c95ab6b895
commit deae1f8323
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

@ -104,6 +104,9 @@ Release 2.7.4 - UNRELEASED
HADOOP-13804. MutableStat mean loses accuracy if add(long, long) is used.
(Erik Krogen via zhz)
HADOOP-11859. PseudoAuthenticationHandler fails with httpcomponents v4.4.
(Eugene Koifman via jitendra)
Release 2.7.3 - 2016-08-25
INCOMPATIBLE CHANGES