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

Fix #10411 default environment #10415

Merged
merged 5 commits into from
Aug 29, 2023

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Aug 27, 2023

Fix #10411
Implemented a simpler default environment algorithm where an application that does not specify an environment is always attempted in the default.

Implemented a simpler default environment algorithm where an application that does not specify an environment is always attempted in the default.
@gregw gregw linked an issue Aug 27, 2023 that may be closed by this pull request
@gregw gregw requested a review from sbordet August 27, 2023 07:19
@joakime joakime added this to the 12.0.x milestone Aug 28, 2023
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.

Seems simpler. +1

@gregw
Copy link
Contributor Author

gregw commented Aug 28, 2023

As this is ready, I have moved it back for consideration in 12.0.1

Copy link
Contributor

@lorban lorban left a comment

Choose a reason for hiding this comment

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

Either that's a typo, or we need a comment explaining the -11.

Copy link
Contributor

@sbordet sbordet left a comment

Choose a reason for hiding this comment

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

Please go do file deploy-jetty-adoc line 40 and modify the sentence from:

The Jetty content XML file must be accompanied...

to

The Jetty content XML file may be accompanied...

Also, modify DistributionTests.testXmlDeployWarNotInWebapps() so that it has 1 more boolean parameter, namely whether to write the demo.properties file or not.
In this way, we are testing that your fixes work as intended even in the case the *.war is not inside $JETTY_HOME/webapps/.

If you wan to go the extra mile, I would not mind in DistributionTests to add a test with 2 XML files and different environments that also verifies that one of them must have the *.properties file to be deployed correctly.

@gregw gregw requested review from lorban and sbordet August 29, 2023 10:46
Small fixes and clarifications.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet merged commit d3cd69b into jetty-12.0.x Aug 29, 2023
1 check passed
@sbordet sbordet deleted the fix/jetty-12-10411/default-environment branch August 29, 2023 16:34
lorban pushed a commit that referenced this pull request Aug 30, 2023
Implemented a simpler default environment algorithm where an application that does not specify an environment is always attempted in the default.

Updated documentation.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
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.

Review deployment of Jetty Context XML files
4 participants