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