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

[Openjdk-1551] JAVA_APP_NAME quoting/interpolation issues #344

Merged
merged 2 commits into from
Mar 29, 2023

Conversation

jmtd
Copy link
Member

@jmtd jmtd commented Mar 15, 2023

https://issues.redhat.com/browse/OPENJDK-1551

The reporter specifically highlighted two issues

  • JAVA_APP_NAME=foo means the process name will be 'foo' (with the single quotes included
  • JAVA_APP_NAME=foo bar will cause the container to crash loop with exec: bar': not found

Both should now be addressed, and there's a test for the latter.

Remove a stray string from an earlier test (pebkac)

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
Avoid quoting issues caused by passing JAVA_APP_NAME through
subshells.

Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
Copy link
Contributor

@jerboaa jerboaa left a comment

Choose a reason for hiding this comment

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

Looks good.

@jmtd
Copy link
Member Author

jmtd commented Mar 29, 2023

Test images:

  • quay.io/jdowland/ubi9-openjdk-11:OPENJDK-1551
  • quay.io/jdowland/ubi9-openjdk-11-runtime:OPENJDK-1551
  • quay.io/jdowland/ubi9-openjdk-17:OPENJDK-1551
  • quay.io/jdowland/ubi9-openjdk-17-runtime:OPENJDK-1551

@jmtd jmtd merged commit 3850567 into jboss-container-images:ubi9 Mar 29, 2023
@jmtd jmtd deleted the OPENJDK-1551-JAVA_APP_NAME branch March 29, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants