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

Issue #4430 Quickstart duplicate servlets,filters,listeners from context #5311

Merged
merged 1 commit into from
Sep 22, 2020

Conversation

janbartel
Copy link
Contributor

Closes #4430

If a context xml file configures servlets, filters or listeners, these get put into the quickstart-web.xml file leading to duplicates because the context xml file is re-applied when the context restarts.
This fix checks the Source of the servlet, servlet-mapping, filter, filter-mapping and listener before generating into quickstart-web.xml: any that were added via embedding (ie jetty api/xml) are ignored.

I've marked this for 10.0.0, but happy if it is delayed until 10.0.1.
It will probably also need to be backported (with modifications) for jetty-9.4.x as well.

@janbartel janbartel requested a review from gregw September 22, 2020 11:48
@janbartel janbartel self-assigned this Sep 22, 2020
@gregw gregw merged commit 1a9c68c into jetty-10.0.x Sep 22, 2020
@gregw gregw deleted the jetty-10.0.x-4430-duplicates-in-quickstart branch September 22, 2020 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate generation of servlets/filters/listeners from context xml with quickstart
2 participants