Skip to content

KAFKA-7839 Add quotes to CLASSPATH on Java start#6166

Closed
rwunderer wants to merge 3 commits intoapache:trunkfrom
rwunderer:KAFKA-7839_Add_quotes_to_CLASSPATH_when_starting_Java
Closed

KAFKA-7839 Add quotes to CLASSPATH on Java start#6166
rwunderer wants to merge 3 commits intoapache:trunkfrom
rwunderer:KAFKA-7839_Add_quotes_to_CLASSPATH_when_starting_Java

Conversation

@rwunderer
Copy link
Copy Markdown

Missing quotes around CLASSPATH break kafka-run-class.sh when CLASSPATH contains only a single component with wildcards. For detailed description of the problem see Jira ticket.

This (trivial) contribution is my original work and I license it to the project under the project's open source license.

@OneCricketeer
Copy link
Copy Markdown

Also see #4469

Copy link
Copy Markdown
Contributor

@vvcephei vvcephei left a comment

Choose a reason for hiding this comment

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

Maybe we can get a review from someone who has spent a bit more time with this script.

Comment thread bin/kafka-run-class.sh
# Syntax used on the right side is native Bash string manipulation; for more details see
# http://tldp.org/LDP/abs/html/string-manipulation.html, specifically the section titled "Substring Removal"
CLASSPATH=${CLASSPATH#:}
CLASSPATH="${CLASSPATH#:}"
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.

I don't think this is harmful, but it's also not strictly necessary here.

@rwunderer rwunderer closed this Dec 11, 2023
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.

3 participants