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

Configuring Basic auth prevents adding a collection

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.5, 6.5.1
    • Fix Version/s: 6.6
    • Component/s: Server
    • Labels:
      None

      Description

      Configure Basic auth according to documentation
      Add basic auth params
      SOLR_AUTH_TYPE="basic"
      SOLR_AUTHENTICATION_OPTS="-Dbasicauth=solr:SolrRocks"

      Try to add a collection
      Receive a timeout and error in the logs

      java.lang.IllegalArgumentException: Credentials may not be null
              at org.apache.http.util.Args.notNull(Args.java:54)
              at org.apache.http.auth.AuthState.update(AuthState.java:113)
              at org.apache.solr.client.solrj.impl.PreemptiveAuth.process(PreemptiveAuth.java:56)
              at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:132)
              at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:166)
              at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:485)
              at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)
              at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
              at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
              at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:515)
              at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:279)
              at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:268)
      

        Attachments

        1. repro.sh
          1 kB
          Jason Gerlowski
        2. SOLR-10718.patch
          0.7 kB
          Hrishikesh Gadre
        3. SOLR-10718.patch
          0.8 kB
          Ishan Chattopadhyaya

        Issue Links

          Activity

            People

            • Assignee:
              ichattopadhyaya Ishan Chattopadhyaya
              Reporter:
              safeldm Shawn Feldman

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment