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

bin/solr check to see if solr.jetty.https.port should be set always returns true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 8.8
    • 8.8
    • scripts and tools
    • None

    Description

      This always returns true on Mac OS X (not sure about Linux):

        if [ "$SOLR_SSL_ENABLED" ]; then
          # If using SSL and solr.jetty.https.port not set explicitly, use the jetty.port
          SSL_PORT_PROP="-Dsolr.jetty.https.port=$SOLR_PORT"
          SOLR_OPTS+=($SOLR_SSL_OPTS "$SSL_PORT_PROP")
        fi
      

      On master, we do if [ "$SOLR_SSL_ENABLED" == "true" ]; then

      The problem is that ZkContainer (when zkRun enabled) looks to see if solr.jetty.https.port is set, and if so, then it assumes TLS is enabled. So this little BASH bug causes Solr's HttpShardHandler to connect via https.

      Attachments

        Issue Links

          Activity

            People

              thelabdude Timothy Potter
              thelabdude Timothy Potter
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m