Solr
  1. Solr
  2. SOLR-184

add echoHandler=true to responseHeader, support echoParams=all

    Details

    • Type: Wish Wish
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      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

      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

          Hide
          Ryan McKinley added a comment -

          updated to apply cleanly with trunk

          Show
          Ryan McKinley added a comment - updated to apply cleanly with trunk
          Hide
          Ryan McKinley added a comment -

          Update to apply cleanly with trunk...

          Show
          Ryan McKinley added a comment - Update to apply cleanly with trunk...
          Hide
          Erik Hatcher added a comment -

          committed, and added unit test too.

          Show
          Erik Hatcher added a comment - committed, and added unit test too.

            People

            • Assignee:
              Erik Hatcher
              Reporter:
              Ryan McKinley
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development