manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erlend Garåsen (JIRA) <>
Subject [jira] [Commented] (CONNECTORS-1564) Support preemptive authentication to Solr connector
Date Wed, 30 Jan 2019 12:54:00 GMT


Erlend Garåsen commented on CONNECTORS-1564:

[] and [~michael-o]: We are getting closer. I can confirm that expect
100-continue works with Apache 2.5. I included the header in this

{{protected NamedList<Object> executeMethod(final HttpRequestBase method, final ResponseParser
{{    final boolean isV2Api) throws SolrServerException {}}
{{  method.addHeader("Expect", "100-continue");}}
{{  return super.executeMethod(method, parser, isV2Api);}}

Now I can see the following in my logs:

{{DEBUG 2019-01-30T13:44:00,729 (Thread-2237) - http-outgoing-1 >> "Expect: 100-continue[\r][\n]"}}

Maybe we have a bug in I wasn't able to log anything useful from
httpClientBuilder. Anyway, the setup code seems reasonable. It's almost the same I have done
in another Solr connector I have written.

> Support preemptive authentication to Solr connector
> ---------------------------------------------------
>                 Key: CONNECTORS-1564
>                 URL:
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Lucene/SOLR connector
>            Reporter: Erlend Garåsen
>            Assignee: Karl Wright
>            Priority: Major
>         Attachments: CONNECTORS-1564.patch
> We should post preemptively in case the Solr server requires basic authentication. This
will make the communication between ManifoldCF and Solr much more effective instead of the
>  * Send a HTTP POST request to Solr
>  * Solr sends a 401 response
>  * Send the same request, but with a "{{Authorization: Basic}}" header
> With preemptive authentication, we can send the header in the first request.

This message was sent by Atlassian JIRA

View raw message