Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.5, 4.0-ALPHA
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: Response Writers
    • Labels:
      None
    • Environment:

      Solr 3.5.0

      Description

      i expect that query always return Content-Type, but after SOLR-1123 had committed, it got chance to return nothing if you leave out all of queryResponseWriter in solrconfig.xml. however i attach a small patch that will correct this situation.

      It look like DEFAULT_RESPONSE_WRITERS never called init method in org.apache.solr.core.SolrCore

      1. SOLR-3005.patch
        0.8 kB
        Gasol Wu
      2. SOLR-3005.patch
        2 kB
        Chris Male

        Activity

        Hide
        Chris Male added a comment -

        3x: Committed revision 1243874

        Show
        Chris Male added a comment - 3x: Committed revision 1243874
        Hide
        Chris Male added a comment -

        Trunk: Committed revision 1243870.

        Show
        Chris Male added a comment - Trunk: Committed revision 1243870.
        Hide
        Hoss Man added a comment -

        Chris: +1, commit.

        Show
        Hoss Man added a comment - Chris: +1, commit.
        Hide
        Chris Male added a comment -

        Patch based on Gasol's which addresses the Content-Type missing in JSONResponseWriter, and also init's the default QueryResponseWriters.

        Ready to go.

        Show
        Chris Male added a comment - Patch based on Gasol's which addresses the Content-Type missing in JSONResponseWriter, and also init's the default QueryResponseWriters. Ready to go.
        Hide
        Chris Male added a comment -

        I think its definitely something we should correct as well. The Writers in the DEFAULT_RESPONSE_WRITERS list should be being init'd too (in case we ever add in further init logic to them).

        Show
        Chris Male added a comment - I think its definitely something we should correct as well. The Writers in the DEFAULT_RESPONSE_WRITERS list should be being init'd too (in case we ever add in further init logic to them).
        Hide
        Uwe Schindler added a comment -

        It look like DEFAULT_RESPONSE_WRITERS never called init method in org.apache.solr.core.SolrCore

        Is this a bug or not?

        Show
        Uwe Schindler added a comment - It look like DEFAULT_RESPONSE_WRITERS never called init method in org.apache.solr.core.SolrCore Is this a bug or not?
        Hide
        Chris Male added a comment -

        Thanks for pointing this out, I'll wrap it up shortly.

        Show
        Chris Male added a comment - Thanks for pointing this out, I'll wrap it up shortly.

          People

          • Assignee:
            Chris Male
            Reporter:
            Gasol Wu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development