manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONNECTORS-1408) Request-URI Too Long
Date Thu, 13 Apr 2017 20:31:41 GMT

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

Karl Wright commented on CONNECTORS-1408:
-----------------------------------------

Hi [~cguzel], I looked at the latest SolrJ code and it looks exactly the same as ModifiedHttpSolrClient.
 And there's clearly something broken with it.  I guess we need to answer the following questions:

(1) Is isMultipart getting set?
(2) If not, why not?
(3) If it is, what's actually going wrong?

It looks to me like isMultipart is getting set and the metadata in the request can ONLY be
sent using the URL when it's a multipart POST.  If that's really the case, the SolrJ code
is wrong, but I can probably recommend a fix.  If you can confirm that request.getQueryParams()
contains email metadata then that will confirm what I suspect.

Thanks!!


> Request-URI Too Long
> --------------------
>
>                 Key: CONNECTORS-1408
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1408
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Email connector, Solr 6.x component
>    Affects Versions: ManifoldCF 2.6
>            Reporter: Cihad Guzel
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 2.7
>
>
> I run email connector job and follow "Simple History" from UI. I see an error as follow:
> {code}
> Error from server at http://localhost:8983/solr/mycore: non ok status: 414, message:Request-URI
Too Long
> {code}
> It is sent by Solr. 
> Solr logs say: 
> {code}
> HttpParser - URI is too large >8192
> {code}
> and 
> {code}
> HttpParser - bad HTTP parsed: 414 for HttpChannelOverHttp@2b6931dd{r=0,&#8203;c=false,&#8203;a=IDLE,&#8203;uri=null}

> {code}
> ManifoldCF ModifiedHttpSolrClient.java has following code:
> {code}
>  // It is has one stream, it is the post body, put the params in the URL
>       else {
>         String pstr = toQueryString(wparams, false);
>         HttpEntityEnclosingRequestBase postOrPut = SolrRequest.METHOD.POST == request.getMethod()
?
>             new HttpPost(url + pstr) : new HttpPut(url + pstr);
> {code}
> There is "pstr" field appended to the URL. "pstr" field have all Solr params. It contains
email content. We have "URI is too large" error when email has large content.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message