[WFCORE-7668] ParameterArgumentValidationErrorEmptyStringNotAllowed on domain.ps1 - #6881
[WFCORE-7668] ParameterArgumentValidationErrorEmptyStringNotAllowed on domain.ps1#6881lvydra wants to merge 1 commit into
Conversation
| $PROG_ARGS += "-Dorg.jboss.boot.log.file=$JBOSS_LOG_DIR\host-controller.log" | ||
| $PROG_ARGS += "-Dlogging.configuration=file:$JBOSS_CONFIG_DIR\logging.properties" | ||
| $PROG_ARGS += $HOST_CONTROLLER_JAVA_OPTS | ||
| if ($HOST_CONTROLLER_JAVA_OPTS -ne $null){ |
There was a problem hiding this comment.
@lvydra do we know exactly where the HOST_CONTROLLER_JAVA_OPTS is initialized to null when using --version/--help or its variants?
There was a problem hiding this comment.
@yersan Originally, HOST_CONTROLLER JAVA_OPTS is initialized at
There was a problem hiding this comment.
Ok, so PROCESS_CONTROLLER_JAVA_OPTS has the same problem. inst't it?
I suggest to initialize them at https://github.com/wildfly/wildfly-core/blob/main/core-feature-pack/common/src/main/resources/content/bin/domain.ps1#L23-L28 with the following:
if ((-Not(Test-Path variable:PROCESS_CONTROLLER_JAVA_OPTS)) -or (-Not($PROCESS_CONTROLLER_JAVA_OPTS))) {
$PROCESS_CONTROLLER_JAVA_OPTS = Get-Java-Opts
}
if ((-Not(Test-Path variable:HOST_CONTROLLER_JAVA_OPTS)) -or (-Not($HOST_CONTROLLER_JAVA_OPTS))) {
$HOST_CONTROLLER_JAVA_OPTS = Get-Java-Opts
}
I would expect them to be initialized with the existing Java options
| $PROG_ARGS += "-Dorg.jboss.boot.log.file=$JBOSS_LOG_DIR\host-controller.log" | ||
| $PROG_ARGS += "-Dlogging.configuration=file:$JBOSS_CONFIG_DIR\logging.properties" | ||
| $PROG_ARGS += $HOST_CONTROLLER_JAVA_OPTS | ||
| if ($HOST_CONTROLLER_JAVA_OPTS -ne $null){ |
There was a problem hiding this comment.
Ok, so PROCESS_CONTROLLER_JAVA_OPTS has the same problem. inst't it?
I suggest to initialize them at https://github.com/wildfly/wildfly-core/blob/main/core-feature-pack/common/src/main/resources/content/bin/domain.ps1#L23-L28 with the following:
if ((-Not(Test-Path variable:PROCESS_CONTROLLER_JAVA_OPTS)) -or (-Not($PROCESS_CONTROLLER_JAVA_OPTS))) {
$PROCESS_CONTROLLER_JAVA_OPTS = Get-Java-Opts
}
if ((-Not(Test-Path variable:HOST_CONTROLLER_JAVA_OPTS)) -or (-Not($HOST_CONTROLLER_JAVA_OPTS))) {
$HOST_CONTROLLER_JAVA_OPTS = Get-Java-Opts
}
I would expect them to be initialized with the existing Java options
|
@yersan Sure, I will look at it. |
|
@yersan Yes, that's true. There is only a check for the expected arguments in the JAVA_OPTS output and not for successful execution. |
https://redhat.atlassian.net/browse/WFCORE-7668