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 #3399 jetty.webapps.uri should be the parent of the webapp #3430

Merged

Conversation

janbartel
Copy link
Contributor

Issue #3399

The XmlConfiguration property jetty.webapps.uri should be the uri of the parent of the webapp, but is currently the uri of the webapp itself. Fixed in jetty-10.0.x to not disturb any users in jetty-9 who are currently relying on the (incorrect) value.

Signed-off-by: Jan Bartel <janb@webtide.com>
@janbartel janbartel requested a review from joakime March 6, 2019 00:26
Copy link
Contributor

@joakime joakime left a comment

Choose a reason for hiding this comment

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

Wait ... jetty.webapps.uri should point to ${jetty.base}/webapps right?

Copy link
Contributor

@joakime joakime left a comment

Choose a reason for hiding this comment

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

Actually, I think both the old version and the new version are wrong.

jetty.webapps.uri should be pointing to the webapps directory, not a specific webapp.

@janbartel
Copy link
Contributor Author

Well, $jetty.base/webapps isn't necessarily the directory being used. It could be the value of jetty.deploy.monitoredDir/monitoredPath. Or maybe this webapp wasn't even deployed via the deployer.

So, the only information we really have is the parent dir of the webapp.

I don't know what the original intention was of whoever added these properties, but at least jetty.webapps and jetty.webapps.uri should be consistent and currently they're not.

@janbartel janbartel merged commit de5d041 into jetty-10.0.x Mar 13, 2019
@janbartel janbartel deleted the jetty-10.0.x-3399-XmlConfiguration-jetty.webapps.uri branch March 13, 2019 20:59
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.

2 participants