[ 
https://issues.apache.org/jira/browse/SOLR-11611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17168578#comment-17168578
 ] 

Jakob Furrer commented on SOLR-11611:
-------------------------------------

I can confirm that installations with a simple space in the path already work 
without a problem.
I remembered that incorrectly. Mea culpa.

I have not performed exhaustive test with different special characters.
I require the installation to be made under the (x86) path for my customer. 
That's how I stumbled upon this problem.
The problem is very easy to reproduce (provided one has a Windows host at hand) 
with a plain vanilla download of Solr.

The part with SSL (where escaping and unescaping comes into play) is less 
straightforward, as is involves generating the required certificate and 
adjusting the configuration in solr.in.cmd to reproduce the error.


I am not very experienced with Windows batch scripting myself.
But the proposed patch is the only way I finally got is working for my 
customers.
If someone can indicate a simpler/better solution I am all ears.

> Starting Solr using solr.cmd fails under Windows, when the path contains a 
> parenthesis character
> ------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-11611
>                 URL: https://issues.apache.org/jira/browse/SOLR-11611
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools, SolrCLI
>    Affects Versions: 7.1, 7.4
>         Environment: Microsoft Windows [Version 10.0.15063]
> java version "1.8.0_144"
> Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
>            Reporter: Jakob Furrer
>            Priority: Blocker
>             Fix For: 8.7
>
>         Attachments: SOLR-11611.patch, SOLR-11611.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Starting Solr using solr.cli fails in Windows, when the path contains spaces.
> Use the following example to reproduce the error:
> {quote}C:\>c:
> C:\>cd "C:\Program Files (x86)\Company Name\ProductName Solr\bin"
> C:\Program Files (x86)\Company Name\ProductName Solr\bin>dir
>  Volume in Laufwerk C: hat keine Bezeichnung.
>  Volumeseriennummer: 8207-3B8B
>  Verzeichnis von C:\Program Files (x86)\Company Name\ProductName Solr\bin
> 06.11.2017  15:52    <DIR>          .
> 06.11.2017  15:52    <DIR>          ..
> 06.11.2017  15:39    <DIR>          init.d
> 03.11.2017  17:32             8 209 post
> 03.11.2017  17:32            75 963 solr
> 06.11.2017  14:24            69 407 solr.cmd
>                3 Datei(en),        153 579 Bytes
>                3 Verzeichnis(se), 51 191 619 584 Bytes frei
> C:\Program Files (x86)\Company Name\ProductName Solr\bin>solr.cmd start
> *"\Company" kann syntaktisch an dieser Stelle nicht verarbeitet werden.*
> C:\Program Files (x86)\Company Name\ProductName Solr\bin>{quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to