HADOOP-11859. PseudoAuthenticationHandler fails with httpcomponents v4.4. Contributed by Eugene Koifman.
This commit is contained in:
parent
8de6045842
commit
db4419df6b
|
@ -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())) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue