[
https://issues.apache.org/jira/browse/SOLR-10735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16023696#comment-16023696
]
Jan Høydahl commented on SOLR-10735:
------------------------------------
My first test was a self-built master version but I got into write permission
trouble...
I just tested on Win Server 2012 with a Solr 6.5.1, and successfully did {{solr
start}}, {{solr create}}, and even {{solr -e techproducts}}, when running from
a folder with space in it. I also tried {{solr create -c foo -d folder}} and
{{solr start -s "C:\path with space"}} and they both work.
Then I tried {{solr create -c foo -d "C:\path with spaces\to\conf"}}, and that
one failed with error
{noformat}
ERROR: Specified config directory C:\Users\jho\Desktop\solr not found in
C:\Users\jho\Desktop\solr with space\server\sol
r\configsets
{noformat}
I don't know if that particular command used to work pre 6.5?
The script code in question is
{code}
"%JAVA%" %SOLR_SSL_OPTS% %AUTHC_OPTS% %SOLR_ZK_CREDS_AND_ACLS%
-Dsolr.install.dir="%SOLR_TIP%" ^
-Dlog4j.configuration="file:%DEFAULT_SERVER_DIR%\scripts\cloud-scripts\log4j.properties"
^
-classpath
"%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*"
^
org.apache.solr.util.SolrCLI create_core -name !CREATE_NAME! -solrUrl
!SOLR_URL_SCHEME!://%SOLR_TOOL_HOST%:!CREATE_PORT!/solr ^
-confdir !CREATE_CONFDIR! -configsetsDir "%SOLR_TIP%\server\solr\configsets"
{code}
I think the {{-confdir \!CREATE_CONFDIR\!}} is the sinner, it should be quoted,
not?
> Solr is broken when directory with spaces used on Windows
> ---------------------------------------------------------
>
> Key: SOLR-10735
> URL: https://issues.apache.org/jira/browse/SOLR-10735
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 6.5
> Reporter: Ishan Chattopadhyaya
> Attachments: Screenshot from 2017-05-24 21-00-29.png
>
>
> [~thetaphi] mentioned this in the 6.6 RC1 voting thread:
> {code}
> The startup script (Windows at least) again does not work with whitepsace
> directory names, which is standard on Windows. It does give an error message
> not while server startup, but when trying to create the techproducts core. I
> am about to open issue.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]