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
[WFCORE-499] : System properties are broken in domain mode. #463
Conversation
Linux Build 1121 is now running using a merge of 8d981b4 |
Linux Build 1121 outcome was SUCCESS using a merge of 8d981b4 |
The "boot-time" attribute doesn't belong on a server. It's an instruction to the HC to apply the property as part of the command used to launch the java.lang.Process; i.e. used in ManagedServerBootCmdFactory. So any system-property resource with that set to 'true' should not become part of the server's configuration model. |
My guess is this was the problem: and this is the fix: |
That commits fixes the https://issues.jboss.org/browse/WFLY-4299 problem, which looks to be just a specific example of WFCORE-499. |
@@ -369,6 +389,50 @@ public void testSystemPropertyManagement() throws IOException { | |||
Assert.assertEquals(origPropCount, returnVal.asList().size()); | |||
} | |||
|
|||
@Test | |||
public void testSystemPropertyBootTime() throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for a test like this it would be good to use the core-service=platform-mbean stuff to validate the actual system property in the server VM. org.jboss.as.test.deployment.trivial.ServiceActivatorDeploymentUtil has some utility code related to reading system properties that way.
Adding system properties after resolution before boot. Adding test for this.
Fixing missing code and covering with a test. |
Linux Build 1147 is now running using a merge of 0a642e6 |
Linux Build 1147 outcome was SUCCESS using a merge of 0a642e6 |
Core - Full Integration Build 421 outcome was FAILURE using a merge of 0a642e6 Build problems:Failed tests detected Failed tests
|
[WFCORE-499] : System properties are broken in domain mode.
Allowing the boot-time attribute for managed servers.
Jira: https://issues.jboss.org/browse/WFCORE-499