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

Karl Wright edited comment on CONNECTORS-1408 at 4/13/17 6:54 PM:
------------------------------------------------------------------

Hi [~cguzel], am I correct in guessing you are *not* using the extract handler?

The UpdateRequest class has the following default HTTP method:

{code}
  public UpdateRequest() {
     super(METHOD.POST, "/update");
  }
 
  public More ...UpdateRequest(String url) {
    super(METHOD.POST, url);
  }
{code}

So, POST is the default for update requests.  Under the covers, even when you 
submit a SolrInputDocument to the SolrClient (which is what you get when you 
aren't using the Solr Cell endpoint), I still can't see any place that it 
changes this to PUT.  So I see no way this can happen?

Perhaps the request is actually using POST and there's some configuration on 
the Solr side to limit the size?

 


was (Author: [email protected]):
Hi [~cguzel], am I correct in guessing you are *not* using the extract handler?

The UpdateRequest class has the following default HTTP method:

{code}
  public More ...UpdateRequest() {
     super(METHOD.POST, "/update");
  }
 
  public More ...UpdateRequest(String url) {
    super(METHOD.POST, url);
  }
{code}

So, POST is the default for update requests.  Under the covers, even when you 
submit a SolrInputDocument to the SolrClient (which is what you get when you 
aren't using the Solr Cell endpoint), I still can't see any place that it 
changes this to PUT.  So I see no way this can happen?

Perhaps the request is actually using POST and there's some configuration on 
the Solr side to limit the size?

 

> 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
>
> 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,​c=false,​a=IDLE,​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)

Reply via email to