[
https://issues.apache.org/jira/browse/CONNECTORS-1564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16736933#comment-16736933
]
Erlend GarĂ¥sen commented on CONNECTORS-1564:
--------------------------------------------
[~michael-o], thanks for looking at this! This is what happens if I use the
current MCF version without preemptive authentication. I cannot see any Expect
header which may be one of the reasons why it fails. As you can see, the
exception occurs at the end when MCF/HttpClient probably tries to do a second
post after a 401 response. By using preemptive authentication, I can also see
the base64 encoded username and password sent to the Solr server, but no
authentication attempt is ever send by using the current MCF version.
[output_solr_client.txt|http://folk.uio.no/erlendfg/manifoldcf/output_solr_client.txt]
> Support preemptive authentication to Solr connector
> ---------------------------------------------------
>
> Key: CONNECTORS-1564
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1564
> 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 following:
> * 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
(v7.6.3#76005)