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

JSPWIKI-1188 system property expansion #330

Conversation

spyhunter99
Copy link
Contributor

@spyhunter99
Copy link
Contributor Author

this actually didn't work when i tested it in tomcat. investigating now

@spyhunter99
Copy link
Contributor Author

cycling back around to this. looks like the last commit i made does it fact work.
i'm not sure why the tests failed (works on my machine lol). test failure is related to email notifications...i didn't touch any of that. any guidance from the JSPWiki team?

* this ensures property load order remains as before, so we don't unexpectedly change resolved properties for anyone
* more importantly, we also check for system env variables if the system property isn't defined. This allows us to check for things like i.e.
* added javadocs here and there and some formatting changes along the way, and a new assertion on the test
@juanpablo-santos
Copy link
Contributor

Hi, just added a commit on the PR to also allow system env variable expansion, with the tests also passing; let's merge this and get a look to ci build then

@juanpablo-santos juanpablo-santos merged commit 183b7a8 into apache:master Apr 27, 2024
1 check failed
@juanpablo-santos
Copy link
Contributor

this is now merged in 2.12.2-git-13, thanks! :-)

@juanpablo-santos
Copy link
Contributor

re. the build failure, MailUtilTest does send a mail to a local mailbox, and seems that up recently it doesn't allow mail sending if not using at least TLSv1.2. Currently running build at master should fix that issue, and I've also enabled console output on surefire on test failures/errors so hopefully debugging will be easier from now on.

@spyhunter99
Copy link
Contributor Author

could try dumpster. it's a pure java, unit test only, mail server setup. We used it on apache juddi for integration tests. works fairly well for plain text stuff. never tried it with ssl though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants