You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by "flora-jin (via GitHub)" <gi...@apache.org> on 2025/02/06 00:36:26 UTC
[PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
flora-jin opened a new pull request, #3020:
URL: https://github.com/apache/tinkerpop/pull/3020
TINKERPOP: https://issues.apache.org/jira/browse/TINKERPOP-2489
Bug: If working directory contained spaces running gremlin-server.sh resulted in file not found exception
Fix: added quotations to appropriate areas and fixed code that replaced spaces with colons to not change any spaces directory names.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
Posted by "andreachild (via GitHub)" <gi...@apache.org>.
andreachild commented on code in PR #3020:
URL: https://github.com/apache/tinkerpop/pull/3020#discussion_r1945302491
##########
gremlin-server/src/main/bin/gremlin-server.sh:
##########
@@ -166,7 +166,7 @@ start() {
exit 1
fi
- $JAVA -Dlogback.configurationFile=$LOGBACK_CONF $JAVA_OPTIONS -cp $CLASSPATH $GREMLIN_SERVER_CMD "$GREMLIN_YAML" >> "$LOG_FILE" 2>&1 &
+ $JAVA -Dlogback.configurationFile="$LOGBACK_CONF" $JAVA_OPTIONS -cp "$CLASSPATH" "$GREMLIN_SERVER_CMD" "$GREMLIN_YAML" >> "$LOG_FILE" 2>&1 &
Review Comment:
Should `JAVA_OPTIONS` also be quoted?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
Posted by "Cole-Greer (via GitHub)" <gi...@apache.org>.
Cole-Greer commented on code in PR #3020:
URL: https://github.com/apache/tinkerpop/pull/3020#discussion_r1945727572
##########
gremlin-server/src/main/bin/gremlin-server.sh:
##########
@@ -96,7 +96,7 @@ fi
# Build Java CLASSPATH
CP="$GREMLIN_HOME/conf/"
-CP="$CP":$( echo $GREMLIN_HOME/lib/*.jar . | sed 's/ /:/g')
+CP="$CP":$( find "$GREMLIN_HOME/lib" -name "*.jar" -print | tr '\n' ':' )
Review Comment:
There's a slight difference in the output of these 2 commands.
`echo $GREMLIN_HOME/lib/*.jar . | sed 's/ /:/g'` produces something like this:
`path_to_x.jar:path_to_y.jar:path_to_z.jar:.`
whereas `find "$GREMLIN_HOME/lib" -name "*.jar" -print | tr '\n' ':'` produces something like this:
`path_to_x.jar:path_to_y.jar:path_to_z.jar:`
The new classpath is missing the current directory (`.`).
Also just a small nit, the new classpath is ending with a trailing `:`, I don't think this causes any issues but it is a bit atypical.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
Posted by "xiazcy (via GitHub)" <gi...@apache.org>.
xiazcy merged PR #3020:
URL: https://github.com/apache/tinkerpop/pull/3020
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
Posted by "andreachild (via GitHub)" <gi...@apache.org>.
andreachild commented on PR #3020:
URL: https://github.com/apache/tinkerpop/pull/3020#issuecomment-2641305098
VOTE +1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
Posted by "Cole-Greer (via GitHub)" <gi...@apache.org>.
Cole-Greer commented on PR #3020:
URL: https://github.com/apache/tinkerpop/pull/3020#issuecomment-2654519361
VOTE +1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
Posted by "flora-jin (via GitHub)" <gi...@apache.org>.
flora-jin commented on code in PR #3020:
URL: https://github.com/apache/tinkerpop/pull/3020#discussion_r1945240094
##########
gremlin-server/src/main/bin/gremlin-server.sh:
##########
@@ -96,7 +96,7 @@ fi
# Build Java CLASSPATH
CP="$GREMLIN_HOME/conf/"
-CP="$CP":$( echo $GREMLIN_HOME/lib/*.jar . | sed 's/ /:/g')
Review Comment:
The logic in gremlin-console doesn't include any working directory names and only includes lib/*.jar. which is why it was okay in gremlin-console/bin/gremlin.sh I believe.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
Posted by "andreachild (via GitHub)" <gi...@apache.org>.
andreachild commented on code in PR #3020:
URL: https://github.com/apache/tinkerpop/pull/3020#discussion_r1943896700
##########
gremlin-server/src/main/bin/gremlin-server.sh:
##########
@@ -96,7 +96,7 @@ fi
# Build Java CLASSPATH
CP="$GREMLIN_HOME/conf/"
-CP="$CP":$( echo $GREMLIN_HOME/lib/*.jar . | sed 's/ /:/g')
Review Comment:
This logic is also in gremlin-console `gremlin.sh` which had a very similar bug that you fixed as part of https://github.com/apache/tinkerpop/pull/3012. Does this mean that the console's `gremlin.sh` also needs this change?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #3020:
URL: https://github.com/apache/tinkerpop/pull/3020#issuecomment-2638368101
## [Codecov](https://app.codecov.io/gh/apache/tinkerpop/pull/3020?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 76.36%. Comparing base [(`9b46b67`)](https://app.codecov.io/gh/apache/tinkerpop/commit/9b46b6777d2fa250e41daacf2fa4554605aff53a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`d923edb`)](https://app.codecov.io/gh/apache/tinkerpop/commit/d923edb485a1c622c7ea14f132fdf00241f0e1b0?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
> Report is 307 commits behind head on 3.7-dev.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## 3.7-dev #3020 +/- ##
=============================================
+ Coverage 76.14% 76.36% +0.22%
- Complexity 13152 13236 +84
=============================================
Files 1084 1061 -23
Lines 65160 61579 -3581
Branches 7285 7342 +57
=============================================
- Hits 49616 47026 -2590
+ Misses 12839 12033 -806
+ Partials 2705 2520 -185
```
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/tinkerpop/pull/3020?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
Posted by "andreachild (via GitHub)" <gi...@apache.org>.
andreachild commented on code in PR #3020:
URL: https://github.com/apache/tinkerpop/pull/3020#discussion_r1945298914
##########
gremlin-server/src/main/bin/gremlin-server.sh:
##########
@@ -96,7 +96,7 @@ fi
# Build Java CLASSPATH
CP="$GREMLIN_HOME/conf/"
-CP="$CP":$( echo $GREMLIN_HOME/lib/*.jar . | sed 's/ /:/g')
Review Comment:
Right, that makes sense
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
Posted by "flora-jin (via GitHub)" <gi...@apache.org>.
flora-jin commented on code in PR #3020:
URL: https://github.com/apache/tinkerpop/pull/3020#discussion_r1945414980
##########
gremlin-server/src/main/bin/gremlin-server.sh:
##########
@@ -166,7 +166,7 @@ start() {
exit 1
fi
- $JAVA -Dlogback.configurationFile=$LOGBACK_CONF $JAVA_OPTIONS -cp $CLASSPATH $GREMLIN_SERVER_CMD "$GREMLIN_YAML" >> "$LOG_FILE" 2>&1 &
+ $JAVA -Dlogback.configurationFile="$LOGBACK_CONF" $JAVA_OPTIONS -cp "$CLASSPATH" "$GREMLIN_SERVER_CMD" "$GREMLIN_YAML" >> "$LOG_FILE" 2>&1 &
Review Comment:
JAVA_OPTIONS being quoted threw an exception regarding memory.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [TINKERPOP-2489] Server doesn't start if folder has spaces [tinkerpop]
Posted by "xiazcy (via GitHub)" <gi...@apache.org>.
xiazcy commented on PR #3020:
URL: https://github.com/apache/tinkerpop/pull/3020#issuecomment-2657341291
VOTE +1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org