Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid replacing the default Http Context #16

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

timothyjward
Copy link
Contributor

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.

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.

Signed-off-by: Tim Ward <timothyjward@apache.org>
Copy link
Contributor

@maho7791 maho7791 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@timothyjward timothyjward merged commit f04fd09 into osgi:main Jul 13, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants