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

add echoHandler=true to responseHeader, support echoParams=all

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.2
    • 1.2
    • None
    • None

    Description

      optionally return what handler was used in the response header. This patch also extends echoParams so that it supports 'all' and 'none'

      It makes a small API change to the protected SolrCore.setResponseHeaderValues() – it now passes in the handler that was used.

      Some URLs to check (but remember that the /debug/dump handler prints out its own 'params')

      http://localhost:8983/solr/debug/dump
      http://localhost:8983/solr/debug/dump?echoParams=all&param1=A
      http://localhost:8983/solr/debug/dump?echoParams=explicit&param1=A
      http://localhost:8983/solr/debug/dump?echoParams=false&param1=A

      to keep things reasonable, i'm mapping:
      echoParams=true >> explicit
      echoParams=false >> none

      Attachments

        1. SOLR-184-EchoHandler.patch
          5 kB
          Ryan McKinley
        2. SOLR-184-EchoHandler.patch
          6 kB
          Ryan McKinley
        3. SOLR-184-EchoHandler.patch
          5 kB
          Ryan McKinley

        Issue Links

          Activity

            People

              ehatcher Erik Hatcher
              ryantxu Ryan McKinley
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: