[ 
https://issues.apache.org/jira/browse/CONNECTORS-661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13599020#comment-13599020
 ] 

Erlend GarĂ¥sen commented on CONNECTORS-661:
-------------------------------------------

Actually, it seems to be one request to me.

{code}
-bash-3.2$ curl -vvv -X POST -H "Content-Type: text/xml" -H "Expect: 
100-continue" --data-binary "<xml/>" -k -i 
https://solr-prod01.uio.no/solr/update/
* About to connect() to solr-prod01.uio.no port 443
*   Trying 129.240.120.16... connected
* Connected to solr-prod01.uio.no (129.240.120.16) port 443
* successfully set certificate verify locations:
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSLv2, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server key exchange (12):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
*        subject: /C=NO/O=Universitetet i Oslo/OU=USIT/CN=solr-prod01.uio.no
*        start date: 2011-04-06 00:00:00 GMT
*        expire date: 2014-04-05 23:59:59 GMT
*        subjectAltName: solr-prod01.uio.no matched
*        issuer: /C=NL/O=TERENA/CN=TERENA SSL CA
* SSL certificate verify ok.
> POST /solr/update/ HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 
> OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: solr-prod01.uio.no
> Accept: */*
> Content-Type: text/xml
> Expect: 100-continue
> Content-Length: 6
> 
> <xml/>HTTP/1.1 100 Continue
HTTP/1.1 100 Continue

< HTTP/1.1 401 Unauthorized
HTTP/1.1 401 Unauthorized
< Date: Mon, 11 Mar 2013 17:16:49 GMT
Date: Mon, 11 Mar 2013 17:16:49 GMT
< Server: Apache/2.2.22 (Unix)
Server: Apache/2.2.22 (Unix)
< WWW-Authenticate: Basic realm="resin"
WWW-Authenticate: Basic realm="resin"
< Content-Length: 159
Content-Length: 159
< Content-Type: text/html; charset=utf-8
Content-Type: text/html; charset=utf-8
< X-UA-Compatible: IE=EmulateIE7
X-UA-Compatible: IE=EmulateIE7
< Connection: close
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>
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
{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

Reply via email to