Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17074

Not correctly escaped quote in bin/solr script

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.3, 9.4
    • 9.5
    • scripts and tools

    Description

      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.

       

       

       

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              cpoerschke Christine Poerschke
              dbejean Dominique Béjean
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h