Chris M. Hostetter created SOLR-17029:
-----------------------------------------
Summary: SOLR_OPTS and '-a' both break with quoted/escaped
whitespace
Key: SOLR-17029
URL: https://issues.apache.org/jira/browse/SOLR-17029
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Reporter: Chris M. Hostetter
It's basically impossible to use an quoted/escaped whitespace in SOLR_OPTS.
By the time {{java}} gets the args, the quoted/escaped whitespace has been
treated as a break in the argument list, and the quote characters are treated
as literals characters in the argument values...
{noformat}
$ SOLR_OPTS='-XX:-UseLargePages -Dfoo=bar -Dyak="white space"' ./bin/solr
start -f
Error: Could not find or load main class space"
Caused by: java.lang.ClassNotFoundException: space"
$ SOLR_OPTS="-XX:-UseLargePages -Dfoo=bar -Dyak=white\ space" ./bin/solr start
-f
Error: Could not find or load main class space
Caused by: java.lang.ClassNotFoundException: space
$ SOLR_OPTS='-XX:-UseLargePages -Dfoo=bar "-Dyak=white space"' ./bin/solr
start -f
Error: Could not find or load main class "-Dyak=white
Caused by: java.lang.ClassNotFoundException: "-Dyak=white
{noformat}
The same problem affects the {{-a}} option...
{noformat}
$ SOLR_OPTS='-XX:-UseLargePages -Dfoo=bar' ./bin/solr start -f -a '-Dyak="white
space"'
Error: Could not find or load main class space"
Caused by: java.lang.ClassNotFoundException: space"
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]