[jboss-as7-dev] [AS7-5869] Registering servlets directly off the root context
David Bosschaert
david at redhat.com
Thu Nov 15 11:30:24 EST 2012
Hi all,
I have been looking at making our OSGi HttpService implementation
compliant with the specification [1] (in the context of [2]). One of the
things that this spec prescribes is the ability to register servlets
with an alias directly off the root of the web server. So for example
you would call
HttpService.registerService("/svlt", myServlet, null)
in this case the servlet would have to appear at http://localhost:8080/svlt
Previously our HttpService implementation would put the servlet on
http://localhost:8080/httpservice/svlt instead, but this is not
compliant with the spec.
Would there be any issues with such a change? For example, are there
certain contexts that users should be prevented from registering at? Or
is there a security impact?
I have made this change in the following pull request
https://github.com/jbossas/jboss-as/pull/3448
Cheers,
David
[1] http://www.osgi.org/Download/Release5
[2] https://issues.jboss.org/browse/AS7-5869
More information about the jboss-as7-dev
mailing list