YARN-3624. ApplicationHistoryServer should not reverse the order of the
filters it gets. Contributed by Mit Desai (cherry picked from commit d1b9b852442cb93b413eff8a137db6213e730d9c) (cherry picked from commit bf3f08cc634c97fd31cc481b9fef3ccb2a53e5e9)
This commit is contained in:
parent
2b4c7fcc67
commit
4c6e24528d
@ -82,8 +82,8 @@ Release 2.7.2 - UNRELEASED
|
||||
YARN-3975. WebAppProxyServlet should not redirect to RM page if AHS is
|
||||
enabled (Mit Desai via jlowe)
|
||||
|
||||
YARN-3740. Fixed the typo in the configuration name:
|
||||
APPLICATION_HISTORY_PREFIX_MAX_APPS. (Xuan Gong via zjshen)
|
||||
YARN-3624. ApplicationHistoryServer should not reverse the order of the
|
||||
filters it gets. (Mit Desai via xgong)
|
||||
|
||||
Release 2.7.1 - 2015-07-06
|
||||
|
||||
|
@ -232,17 +232,20 @@ private void startWebApp() {
|
||||
if(conf.getBoolean(YarnConfiguration
|
||||
.TIMELINE_SERVICE_HTTP_CROSS_ORIGIN_ENABLED, YarnConfiguration
|
||||
.TIMELINE_SERVICE_HTTP_CROSS_ORIGIN_ENABLED_DEFAULT)) {
|
||||
initializers = CrossOriginFilterInitializer.class.getName() + ","
|
||||
+ initializers;
|
||||
if (initializers.length() != 0) {
|
||||
initializers += ",";
|
||||
}
|
||||
initializers += CrossOriginFilterInitializer.class.getName();
|
||||
modifiedInitializers = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!initializers.contains(TimelineAuthenticationFilterInitializer.class
|
||||
.getName())) {
|
||||
initializers =
|
||||
TimelineAuthenticationFilterInitializer.class.getName() + ","
|
||||
+ initializers;
|
||||
if (initializers.length() != 0) {
|
||||
initializers += ",";
|
||||
}
|
||||
initializers += TimelineAuthenticationFilterInitializer.class.getName();
|
||||
modifiedInitializers = true;
|
||||
}
|
||||
|
||||
|
@ -138,8 +138,8 @@ public void testFilterOverrides() throws Exception {
|
||||
HashMap<String, String> driver = new HashMap<String, String>();
|
||||
driver.put("", TimelineAuthenticationFilterInitializer.class.getName());
|
||||
driver.put(StaticUserWebFilter.class.getName(),
|
||||
TimelineAuthenticationFilterInitializer.class.getName() + ","
|
||||
+ StaticUserWebFilter.class.getName());
|
||||
StaticUserWebFilter.class.getName() + "," +
|
||||
TimelineAuthenticationFilterInitializer.class.getName());
|
||||
driver.put(AuthenticationFilterInitializer.class.getName(),
|
||||
TimelineAuthenticationFilterInitializer.class.getName());
|
||||
driver.put(TimelineAuthenticationFilterInitializer.class.getName(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user