[jira] [Updated] (SOLR-12351) Additional args with spaces prevent startup

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Updated] (SOLR-12351) Additional args with spaces prevent startup

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/SOLR-12351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl updated SOLR-12351:
    Priority: Major  (was: Blocker)

> 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: Major
> 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

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]