Skip to content

[WFCORE-7668] ParameterArgumentValidationErrorEmptyStringNotAllowed on domain.ps1 - #6881

Open
lvydra wants to merge 1 commit into
wildfly:mainfrom
lvydra:WFCORE-7668
Open

[WFCORE-7668] ParameterArgumentValidationErrorEmptyStringNotAllowed on domain.ps1#6881
lvydra wants to merge 1 commit into
wildfly:mainfrom
lvydra:WFCORE-7668

Conversation

@lvydra

@lvydra lvydra commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

@yersan yersan added the hold Do not merge this PR label Aug 11, 2026
$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){

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@lvydra do we know exactly where the HOST_CONTROLLER_JAVA_OPTS is initialized to null when using --version/--help or its variants?

@lvydra lvydra Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@yersan Originally, HOST_CONTROLLER JAVA_OPTS is initialized at

, but after changes, when the script is run using --version/--help, initialization is skipped , and it remains undeclared, implicitly null.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@lvydra lvydra Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@yersan I have rebased the commit, and it seems that the changes in e6ee679 are enough to resolve the issue. I have left an update of the tests in the commit to verify that.

@yersan yersan removed the hold Do not merge this PR label Aug 21, 2026

@yersan yersan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@lvydra scripts are failing with this change, could you take a closer look?

$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){

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@lvydra

lvydra commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

@yersan Sure, I will look at it.

@yersan yersan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Weird, it looks like those test are already silently failing, correct me if I am wrong @lvydra I assume you are looking closely to them

@lvydra

lvydra commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

@yersan Yes, that's true. There is only a check for the expected arguments in the JAVA_OPTS output and not for successful execution.

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