Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1408

Request-URI Too Long

    XMLWordPrintableJSON

Details

    Description

      I run email connector job and follow "Simple History" from UI. I see an error as follow:

      Error from server at http://localhost:8983/solr/mycore: non ok status: 414, message:Request-URI Too Long
      

      It is sent by Solr.

      Solr logs say:

      HttpParser - URI is too large >8192
      

      and

      HttpParser - bad HTTP parsed: 414 for HttpChannelOverHttp@2b6931dd{r=0,​c=false,​a=IDLE,​uri=null} 
      

      ManifoldCF ModifiedHttpSolrClient.java has following 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);
      
      

      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.

      Attachments

        1. http-wire2.log
          158 kB
          Cihad Guzel
        2. http-wire.log
          8 kB
          Cihad Guzel

        Activity

          People

            kwright@metacarta.com Karl Wright
            cguzel Cihad Guzel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: