# HG changeset patch # User Sascha L. Teichmann # Date 1306145071 0 # Node ID c42a07be9aeed8a39809099bbd17e146e1fa0403 # Parent d52947ce8629e536a196697b0cb1afcdb054a561 Jetty HTTP server: Do not bind context to restlet app for security reasons. artifacts/trunk@1977 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r d52947ce8629 -r c42a07be9aee ChangeLog --- a/ChangeLog Mon May 23 09:56:15 2011 +0000 +++ b/ChangeLog Mon May 23 10:04:31 2011 +0000 @@ -1,3 +1,8 @@ +2011-04-23 Sascha L. Teichmann + + * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/JettyServer.java: + Do not bind context to restlet app for security reasons. + 2011-04-23 Sascha L. Teichmann * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/Standalone.java: diff -r d52947ce8629 -r c42a07be9aee artifact-database/src/main/java/de/intevation/artifactdatabase/rest/JettyServer.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/JettyServer.java Mon May 23 09:56:15 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/JettyServer.java Mon May 23 10:04:31 2011 +0000 @@ -19,18 +19,20 @@ Component component = new Component(); - RestApp app = new RestApp(component.getContext(), db); + RestApp app = new RestApp(db); Server server = createServer(); + // TODO: Do more sophisticated Jetty server configuration here. + component.getServers().add(server); + component.getDefaultHost().attach(app); + logServerStart(); HttpServerHelper serverHelper = new HttpServerHelper(server); - // TODO: Do more sophisticated Jetty server configuration here. - try { serverHelper.start(); }