svn merge -c 1426515 FIXES: YARN-225. Proxy Link in RM UI thows NPE in Secure mode (Devaraj K via bobby)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1426516 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7bec80179b
commit
4b5a93bc1d
|
@ -231,6 +231,9 @@ Release 0.23.6 - UNRELEASED
|
|||
YARN-280. RM does not reject app submission with invalid tokens
|
||||
(Daryn Sharp via tgraves)
|
||||
|
||||
YARN-225. Proxy Link in RM UI thows NPE in Secure mode
|
||||
(Devaraj K via bobby)
|
||||
|
||||
Release 0.23.5 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -254,11 +254,14 @@ public class WebAppProxyServlet extends HttpServlet {
|
|||
|
||||
if(securityEnabled) {
|
||||
String cookieName = getCheckCookieName(id);
|
||||
for(Cookie c: req.getCookies()) {
|
||||
if(cookieName.equals(c.getName())) {
|
||||
userWasWarned = true;
|
||||
userApproved = userApproved || Boolean.valueOf(c.getValue());
|
||||
break;
|
||||
Cookie[] cookies = req.getCookies();
|
||||
if (cookies != null) {
|
||||
for (Cookie c : cookies) {
|
||||
if (cookieName.equals(c.getName())) {
|
||||
userWasWarned = true;
|
||||
userApproved = userApproved || Boolean.valueOf(c.getValue());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue