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 Mon, 25 Feb 2019 15:22:00 GMT


Erlend Garåsen commented on CONNECTORS-1564:

[~michael-o], I will create a ticket this afternoon. I have added more code to my small application
which will be sent along with the ticket. Now I have SolrJ code which does not show any expect
header and native HttpClient code which actually works as expected. The following sample is
a simplified version of your code where the Expect: 100-continue shows up in the logs:
HttpPost httpPost = new HttpPost(baseUrl);
HttpEntity entity = new InputStreamEntity(new ByteArrayInputStream("test".getBytes()));
DEBUG 25.02.2019 16:06:35:567 (
- http-outgoing-0 >> Expect: 100-continue{noformat}

> 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