Fix up the JettyAppServer
After the Jetty update is was only serving from the
StaticResourceHandler, and none of the other servlets.
import org.seleniumhq.jetty9.server.handler.AllowSymLinkAliasChecker;
import org.seleniumhq.jetty9.server.handler.ContextHandler.ApproveAliases;
import org.seleniumhq.jetty9.server.handler.ContextHandlerCollection;
+import org.seleniumhq.jetty9.server.handler.HandlerList;
import org.seleniumhq.jetty9.server.handler.ResourceHandler;
import org.seleniumhq.jetty9.servlet.ServletContextHandler;
import org.seleniumhq.jetty9.servlet.ServletHolder;
@@ -267,9 +268,13 @@ protected ServletContextHandler addResourceHandler(String contextPath, Path reso
staticResource.setMimeTypes(mimeTypes);
context.setContextPath(contextPath);
- context.setHandler(staticResource);
context.setAliasChecks(ImmutableList.of(new ApproveAliases(), new AllowSymLinkAliasChecker()));
+ HandlerList allHandlers = new HandlerList();
+ allHandlers.addHandler(staticResource);
+ allHandlers.addHandler(context.getHandler());
+ context.setHandler(allHandlers);
+
handlers.addHandler(context);
return context;
