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

TINKERPOP-3070 Cannot run console if working directory contains spaces #3012

Merged
merged 3 commits into from
Feb 8, 2025

Conversation

flora-jin
Copy link
Contributor

@flora-jin flora-jin commented Feb 3, 2025

https://issues.apache.org/jira/browse/TINKERPOP-3070
If the current working directory contains spaces, gremlin.sh does not handle it properly when launching the console, and the JVM will search for an incorrect main class and fail.

For example if I simply rename the standard console distribution directory to foo bar:

foo bar/ $ bin/gremlin.sh
Error: Could not find or load main class bar
Caused by: java.lang.ClassNotFoundException: bar

Added quotations around directory path in order to ensure spaces in directory name are not considered two separate strings

@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.36%. Comparing base (9b46b67) to head (4753ba7).
Report is 309 commits behind head on 3.7-dev.

Additional details and impacted files
@@              Coverage Diff              @@
##             3.7-dev    #3012      +/-   ##
=============================================
+ Coverage      76.14%   76.36%   +0.21%     
- Complexity     13152    13235      +83     
=============================================
  Files           1084     1061      -23     
  Lines          65160    61582    -3578     
  Branches        7285     7344      +59     
=============================================
- Hits           49616    47027    -2589     
+ Misses         12839    12035     -804     
+ Partials        2705     2520     -185     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kenhuuu
Copy link
Contributor

kenhuuu commented Feb 4, 2025

VOTE +1, pending CHANGELOG entry.

@Cole-Greer
Copy link
Contributor

Thanks for tracking down that fix @flora-jin, VOTE +1 (pending CHANGELOG entry)

@flora-jin flora-jin changed the title Cannot run console if working directory contains spaces TINKERPOP-3070 Cannot run console if working directory contains spaces Feb 4, 2025
@andreachild
Copy link
Contributor

VOTE +1

CHANGELOG.asciidoc Outdated Show resolved Hide resolved
@xiazcy
Copy link
Contributor

xiazcy commented Feb 6, 2025

VOTE +1

@kenhuuu kenhuuu merged commit bdba436 into apache:3.7-dev Feb 8, 2025
7 checks passed
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.

6 participants