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

Bad request when posting 0 byte file to Solr

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
    • Fix Version/s: ManifoldCF 0.4
    • Component/s: Lucene/SOLR connector
    • Labels:
      None

      Description

      It seems that httpposter brings about bad request when posting 0 byte file.

      Solr log say the below. "missing content stream". Status code is 400.
      On the other hand when using Solr request handler without MCF, this exception is not thrown and the posting 0 byte files is indexed normally.

      2011/09/13 12:30:40 org.apache.solr.core.SolrCore execute
      ???: [] webapp=/solr path=/update/extract params=

      {literal.id=file:/Users/abe/Desktop/1/no-content/no-content.txt&literal.uri=/Users/abe/Desktop/1/no-content/no-content.txt}

      status=400 QTime=367
      2011/09/13 12:30:40 org.apache.solr.common.SolrException log
      ?v???I: org.apache.solr.common.SolrException: missing content stream
      at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:62)

        Attachments

        1. CONNECTORS-254-1.patch
          1 kB
          Shinichiro Abe
        2. sample0byte.zip
          5 kB
          Shinichiro Abe

          Issue Links

            Activity

              People

              • Assignee:
                shinichiro abe Shinichiro Abe
                Reporter:
                shinichiro abe Shinichiro Abe
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: