eclipse-osgi-technology / jakartarest-osgi

Glassfish Jersey based implementation of the OSGi Jakarta RESTful Web Services Whiteboard specification
https://projects.eclipse.org/projects/technology.osgi-technology
Eclipse Public License 2.0
3 stars 5 forks source link

Avoid replacing the default Http Context #16

Closed timothyjward closed 1 year ago

timothyjward commented 1 year ago

The Servlet Whiteboard provider uses custom ServletContextHelper instances to provide isolation between REST applications. This is a good thing, but when no base was defined the default application was creating a ServletContextHelper which shadowed the default ServletContextHelper. This, in turn, causes unexpected changes in behaviour for people using the Servlet Whiteboard. To be good citizens we should use the default context for the default application when that is possible.