mirror of https://github.com/apache/lucene.git
SOLR-8073: Solr fails to start on Windows with obscure errors when using relative path
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1716446 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bfffa7e0df
commit
77d89d6037
|
@ -419,6 +419,9 @@ Bug Fixes
|
|||
|
||||
* SOLR-8307: Fix XXE vulnerability in MBeansHandler "diff" feature (Erik Hatcher)
|
||||
|
||||
* SOLR-8073: Solr fails to start on Windows with obscure errors when using relative path.
|
||||
(Alexandre Rafalovitch, Ishan Chattopadhyaya via shalin)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -609,11 +609,11 @@ IF NOT "%EXAMPLE%"=="" goto run_example
|
|||
|
||||
:start_solr
|
||||
IF "%SOLR_HOME%"=="" set "SOLR_HOME=%SOLR_SERVER_DIR%\solr"
|
||||
IF EXIST "%cd%\%SOLR_HOME%" set "SOLR_HOME=%cd%\%SOLR_HOME%"
|
||||
|
||||
IF NOT EXIST "%SOLR_HOME%\" (
|
||||
IF EXIST "%SOLR_SERVER_DIR%\%SOLR_HOME%" (
|
||||
set "SOLR_HOME=%SOLR_SERVER_DIR%\%SOLR_HOME%"
|
||||
) ELSE IF EXIST "%cd%\%SOLR_HOME%" (
|
||||
set "SOLR_HOME=%cd%\%SOLR_HOME%"
|
||||
) ELSE (
|
||||
set "SCRIPT_ERROR=Solr home directory %SOLR_HOME% not found!"
|
||||
goto err
|
||||
|
@ -1240,4 +1240,4 @@ REM Safe echo which does not mess with () in strings
|
|||
set "eout=%1"
|
||||
set eout=%eout:"=%
|
||||
echo !eout!
|
||||
GOTO :eof
|
||||
GOTO :eof
|
||||
|
|
Loading…
Reference in New Issue