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

ASF subversion and git services commented on SOLR-17074:
--------------------------------------------------------

Commit a7441c175a4b86817a1dc3deeb3d4761bc1150da in solr's branch 
refs/heads/main from Vincenzo D'Amore
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=a7441c175a4 ]

SOLR-17074: Fixed not correctly escaped quote in bin/solr script (#2200)



> Not correctly escaped quote in bin/solr script
> ----------------------------------------------
>
>                 Key: SOLR-17074
>                 URL: https://issues.apache.org/jira/browse/SOLR-17074
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 9.3, 9.4
>            Reporter: Dominique Béjean
>            Priority: Major
>              Labels: newdev
>             Fix For: 9.5
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> In solr/script file a quote is not escaped 
> {{echo "  -force                If attempting to start Solr as the root user, 
> the script will exit with a warning that running Solr as "root" can cause 
> problems."}}
> {{    echo "                          It is possible to override this warning 
> with the `-force` parameter."}}
>  
> First issue :  double quote arround "root" should be escaped \"root\"
> Second issue : single quote around -force should be standard quote.
> The solr script try to evaluate -force and the output is 
> {{ -force                If attempting to start Solr as the root user, the 
> script will exit with a warning that running Solr as root can cause 
> problems.}}
> {{/opt/solr-9.3.0/bin/solr: line 418: -force: command not found}}
> {{                          It is possible to override this warning with the  
> parameter.}}
>  
>  
>  
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to