[
https://issues.apache.org/jira/browse/CONNECTORS-1519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16870351#comment-16870351
]
Michael Cizmar commented on CONNECTORS-1519:
--------------------------------------------
I spent some time looking at this and added some debugging to the current
version. I believe the issue is this is what comes back with more logging:
{code:java}
DEBUG 2019-06-22T10:36:16,378 (Thread-1440) - ClientProtocol Exception:
ClientProtocolException
DEBUG 2019-06-22T10:36:16,378 (Thread-1440) - ClientProtocol Exception: null
DEBUG 2019-06-22T10:36:16,378 (Thread-1440) - ClientProtocol Cause: Cannot
retry request with a non-repeatable request entity.{code}
and I saw that I got a org.apache.http.client.NonRepeatableRequestException
exception. Looking into it I found this:
/* * If you try to PUT from a stream to a server that uses Digest *
authorization, the operation will fail, because the authorization * handling
will cause * "org.apache.http.client.NonRepeatableRequestException: Cannot
retry request with a non-repeatable request entity." * Semi-precise explanation
of this issue: Issuing a PUT from a stream leads * to the httpclient library
using a non-repeatable (streamed) entity. But * the authorization process makes
the library to repeat the request (1. try * unauthorized, 2. server say 401
Unauthorized, use Digest, 3. client * retries with Digest, but this will fail,
due to the nature of * non-repeatable streamed entity). * * the workaround is
to convert streamed (non-repeatable) entity to * self-contained (repeatable). */
So I think that if xpack is enabled, then it bombs because the HttpEntity is
converted in a stream and can't be repeated.
I'm looking at this and potentially will have a fix.
> CLIENTPROTOCOLEXCEPTION is thrown with 2.10 -> ES 6.x.y
> -------------------------------------------------------
>
> Key: CONNECTORS-1519
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1519
> Project: ManifoldCF
> Issue Type: Bug
> Components: Elastic Search connector
> Affects Versions: ManifoldCF 2.10
> Reporter: Steph van Schalkwyk
> Assignee: Steph van Schalkwyk
> Priority: Major
> Fix For: ManifoldCF 2.14
>
>
> Investigating CLIENTPROTOCOLEXCEPTION when using 2.10 with ES 6.x.y
> More information to follow.
> Fails when using security , i.e.
> [http://user:password@elasticsearch:9200.|http://user:password@elasticsearch:9200./]
> Remedy:
> # Disable x-pack security.
> # Use http://elasticsearch:9200.
>
>
> |07-27-2018 17:53:19.010|Indexation
> (ES)|file:/var/manifoldcf/corpus/000014.html|CLIENTPROTOCOLEXCEPTION|38053|23|
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)