YARN-3624. ApplicationHistoryServer should not reverse the order of the
filters it gets. Contributed by Mit Desai
This commit is contained in:
parent
9cc9f8126b
commit
d1b9b85244
@ -991,6 +991,9 @@ Release 2.7.2 - UNRELEASED
|
|||||||
YARN-3975. WebAppProxyServlet should not redirect to RM page if AHS is
|
YARN-3975. WebAppProxyServlet should not redirect to RM page if AHS is
|
||||||
enabled (Mit Desai via jlowe)
|
enabled (Mit Desai via jlowe)
|
||||||
|
|
||||||
|
YARN-3624. ApplicationHistoryServer should not reverse the order of the
|
||||||
|
filters it gets. (Mit Desai via xgong)
|
||||||
|
|
||||||
Release 2.7.1 - 2015-07-06
|
Release 2.7.1 - 2015-07-06
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -242,17 +242,20 @@ private void startWebApp() {
|
|||||||
if(conf.getBoolean(YarnConfiguration
|
if(conf.getBoolean(YarnConfiguration
|
||||||
.TIMELINE_SERVICE_HTTP_CROSS_ORIGIN_ENABLED, YarnConfiguration
|
.TIMELINE_SERVICE_HTTP_CROSS_ORIGIN_ENABLED, YarnConfiguration
|
||||||
.TIMELINE_SERVICE_HTTP_CROSS_ORIGIN_ENABLED_DEFAULT)) {
|
.TIMELINE_SERVICE_HTTP_CROSS_ORIGIN_ENABLED_DEFAULT)) {
|
||||||
initializers = CrossOriginFilterInitializer.class.getName() + ","
|
if (initializers.length() != 0) {
|
||||||
+ initializers;
|
initializers += ",";
|
||||||
|
}
|
||||||
|
initializers += CrossOriginFilterInitializer.class.getName();
|
||||||
modifiedInitializers = true;
|
modifiedInitializers = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!initializers.contains(TimelineAuthenticationFilterInitializer.class
|
if (!initializers.contains(TimelineAuthenticationFilterInitializer.class
|
||||||
.getName())) {
|
.getName())) {
|
||||||
initializers =
|
if (initializers.length() != 0) {
|
||||||
TimelineAuthenticationFilterInitializer.class.getName() + ","
|
initializers += ",";
|
||||||
+ initializers;
|
}
|
||||||
|
initializers += TimelineAuthenticationFilterInitializer.class.getName();
|
||||||
modifiedInitializers = true;
|
modifiedInitializers = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,8 +138,8 @@ public void testFilterOverrides() throws Exception {
|
|||||||
HashMap<String, String> driver = new HashMap<String, String>();
|
HashMap<String, String> driver = new HashMap<String, String>();
|
||||||
driver.put("", TimelineAuthenticationFilterInitializer.class.getName());
|
driver.put("", TimelineAuthenticationFilterInitializer.class.getName());
|
||||||
driver.put(StaticUserWebFilter.class.getName(),
|
driver.put(StaticUserWebFilter.class.getName(),
|
||||||
TimelineAuthenticationFilterInitializer.class.getName() + ","
|
StaticUserWebFilter.class.getName() + "," +
|
||||||
+ StaticUserWebFilter.class.getName());
|
TimelineAuthenticationFilterInitializer.class.getName());
|
||||||
driver.put(AuthenticationFilterInitializer.class.getName(),
|
driver.put(AuthenticationFilterInitializer.class.getName(),
|
||||||
TimelineAuthenticationFilterInitializer.class.getName());
|
TimelineAuthenticationFilterInitializer.class.getName());
|
||||||
driver.put(TimelineAuthenticationFilterInitializer.class.getName(),
|
driver.put(TimelineAuthenticationFilterInitializer.class.getName(),
|
||||||
|
Loading…
Reference in New Issue
Block a user