HADOOP-11859. PseudoAuthenticationHandler fails with httpcomponents v4.4. Contributed by Eugene Koifman.
This commit is contained in:
parent
fad9d7e85b
commit
1f4767c7f2
@ -142,7 +142,11 @@ public boolean managementOperation(AuthenticationToken token,
|
||||
}
|
||||
|
||||
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())) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user