[
https://issues.apache.org/jira/browse/CONNECTORS-661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13598988#comment-13598988
]
Erlend GarĂ¥sen edited comment on CONNECTORS-661 at 3/11/13 5:08 PM:
--------------------------------------------------------------------
I tried to reproduce this by using Curl. Here is the result. It seems that
Resin sends back 401 as well.
{code}
-bash-3.2$ curl -X POST -H "Content-Type: text/xml" -H "Expect: 100-continue"
--data-binary "<xml/>" -k -i https://solr-prod01.uio.no/solr/update/
HTTP/1.1 100 Continue
HTTP/1.1 401 Unauthorized
Date: Mon, 11 Mar 2013 16:54:30 GMT
Server: Apache/2.2.22 (Unix)
WWW-Authenticate: Basic realm="resin"
Content-Length: 159
Content-Type: text/html; charset=utf-8
X-UA-Compatible: IE=EmulateIE7
Connection: close
<html>
<head><title>401 Unauthorized</title></head>
<body>
<h1>401 Unauthorized</h1>
<p /><hr />
<small>
Resin/4.0.27
Server: 'solr-1'
</small>
</body></html>
{code}
Maybe HttpClient does not read the second response code.
was (Author: erlendfg):
II tried to reproduce this by using Curl. Here is the result. It seems that
Resin sends back 401 as well.
{code}
-bash-3.2$ curl -X POST -H "Content-Type: text/xml" -H "Expect: 100-continue"
--data-binary "<xml/>" -k -i https://solr-prod01.uio.no/solr/update/
HTTP/1.1 100 Continue
HTTP/1.1 401 Unauthorized
Date: Mon, 11 Mar 2013 16:54:30 GMT
Server: Apache/2.2.22 (Unix)
WWW-Authenticate: Basic realm="resin"
Content-Length: 159
Content-Type: text/html; charset=utf-8
X-UA-Compatible: IE=EmulateIE7
Connection: close
<html>
<head><title>401 Unauthorized</title></head>
<body>
<h1>401 Unauthorized</h1>
<p /><hr />
<small>
Resin/4.0.27
Server: 'solr-1'
</small>
</body></html>
{code}
Maybe HttpClient does not read the second response code.
> Solr Connector cannot index documents when Solr is protected by authentication
> ------------------------------------------------------------------------------
>
> Key: CONNECTORS-661
> URL: https://issues.apache.org/jira/browse/CONNECTORS-661
> Project: ManifoldCF
> Issue Type: Bug
> Components: Lucene/SOLR connector
> Affects Versions: ManifoldCF 1.1.1
> Reporter: Karl Wright
> Assignee: Karl Wright
> Priority: Critical
> Fix For: ManifoldCF 1.2
>
>
> The Solr connector cannot deal with Solr servers that are protected by
> authentication. The reason is that HttpClient forces a retry based on the
> WWW-authenticate header that is returned, but the HttpEntity is not
> resettable and thus the retry fails for that reason.
> This is a regression, because the Solr connector used to properly support
> basic auth, and now no longer does.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira