Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1940

SolrDispatchFilter sets content type as NULL

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      o.a.s.h.SolrDispatchFilter can set the output Content-Type to a null pointer instead of a string. Under websphere this results in a NullPointerException. This is the offending code:

      response.setContentType(responseWriter.getContentType(solrReq, solrRsp));

      Suggested fix: either use a default content type, or do not set the content type and let the browser handle it.

        Attachments

        1. SOLR-1940.patch
          2 kB
          Hoss Man
        2. SOLR-1940.patch
          2 kB
          Lance Norskog

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              lancenorskog Lance Norskog
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: