[
https://issues.apache.org/jira/browse/SOLR-12351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jose Ross updated SOLR-12351:
-----------------------------
Description:
Adding a system property with a white spaces results in an startup error:
{code:java}
VAR_WITH_SPACES=some value
-Dmy.custom.prop="%VAR_WITH_SPACES%"{code}
{noformat}
Error: Could not find or load main class value{noformat}
It looks like the quotes are removed and this prevents the server from starting.
Also tried using *SOLR_ADDL_ARGS* but then the script crashes with this message:
{code:java}
SET SOLR_ADDL_ARGS=-Dmy.custom.prop="%VAR_WITH_SPACES%"{code}
{noformat}
value""=="" was unexpected at this time.{noformat}
was:
Adding a system property with a white spaces results in an startup error:
{code:java}
VAR_WITH_SPACES=some value
-Dmy.custom.prop="%VAR_WITH_SPACES%"{code}
{noformat}
Error: Could not find or load main class value{noformat}
It looks like the quotes are removed and this prevents the server from starting.
Also tried using *SOLR_ADDL_ARGS* but then the script crashes with this message:
{noformat}
value""=="" was unexpected at this time.{noformat}
> Additional args with spaces prevent startup
> -------------------------------------------
>
> Key: SOLR-12351
> URL: https://issues.apache.org/jira/browse/SOLR-12351
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: scripts and tools
> Affects Versions: 6.6.3
> Environment: Windows 10
> Reporter: Jose Ross
> Priority: Blocker
>
> Adding a system property with a white spaces results in an startup error:
> {code:java}
> VAR_WITH_SPACES=some value
> -Dmy.custom.prop="%VAR_WITH_SPACES%"{code}
> {noformat}
> Error: Could not find or load main class value{noformat}
> It looks like the quotes are removed and this prevents the server from
> starting.
> Also tried using *SOLR_ADDL_ARGS* but then the script crashes with this
> message:
> {code:java}
> SET SOLR_ADDL_ARGS=-Dmy.custom.prop="%VAR_WITH_SPACES%"{code}
> {noformat}
> value""=="" was unexpected at this time.{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]