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

Add interceptor API for outgoing calls through HttpSolrClient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.3, 6.0
    • SolrJ
    • None

    Description

      Some of our setups use Solr in a SPNego/kerberos setup (we've done this by adding our own filters to the web.xml). We have an issue in that SPNego requires a negotiation step, but some HttpSolrServer requests are not repeatable, notably the PUT/POST requests. So, what happens is, HttpSolrServer sends the requests, the server responds with a negotiation request, and the request fails because the request is not repeatable. We've modified our code to send a repeatable request beforehand in these cases.

      It would be nicer if HttpSolrServer provided a pre/post callback when it was making an httpclient request. This would allow administrators to make changes to the request for authentication purposes, and would allow users to make per-request changes to the httpclient calls (i.e. modify httpclient requestconfig to modify the timeout on a per-request basis).

      Attachments

        1. SOLR-6625_interceptor.patch
          34 kB
          Ishan Chattopadhyaya
        2. SOLR-6625_interceptor.patch
          41 kB
          Ishan Chattopadhyaya
        3. SOLR-6625_interceptor.patch
          62 kB
          Ishan Chattopadhyaya
        4. SOLR-6625_interceptor.patch
          61 kB
          Ishan Chattopadhyaya
        5. SOLR-6625_interceptor.patch
          39 kB
          Ishan Chattopadhyaya
        6. SOLR-6625_interceptor.patch
          39 kB
          Ishan Chattopadhyaya
        7. SOLR-6625_interceptor.patch
          40 kB
          Ishan Chattopadhyaya
        8. SOLR-6625_interceptor.patch
          48 kB
          Ishan Chattopadhyaya
        9. SOLR-6625_interceptor.patch
          49 kB
          Ishan Chattopadhyaya
        10. SOLR-6625_interceptor.patch
          8 kB
          Ishan Chattopadhyaya
        11. SOLR-6625_r1654079.patch
          54 kB
          Per Steffensen
        12. SOLR-6625_r1654079.patch
          49 kB
          Per Steffensen
        13. SOLR-6625_SolrReqPropogate.patch
          71 kB
          Noble Paul
        14. SOLR-6625.patch
          37 kB
          Noble Paul
        15. SOLR-6625.patch
          37 kB
          Noble Paul
        16. SOLR-6625.patch
          53 kB
          Gregory Chanan
        17. SOLR-6625.patch
          53 kB
          Gregory Chanan
        18. SOLR-6625.patch
          52 kB
          Gregory Chanan
        19. SOLR-6625.patch
          51 kB
          Gregory Chanan
        20. SOLR-6625.patch
          20 kB
          Gregory Chanan
        21. SOLR-6625.patch
          15 kB
          Gregory Chanan
        22. SOLR-6625-revert.patch
          14 kB
          Ishan Chattopadhyaya
        23. SOLR-6625-testfailure.log
          49 kB
          Anshum Gupta
        24. SOLR-6625-testfix.patch
          2 kB
          Ishan Chattopadhyaya
        25. SOLR-6625-testfix.patch
          1 kB
          Ishan Chattopadhyaya
        26. SOLR-6625-testfix.patch
          0.6 kB
          Ishan Chattopadhyaya
        27. SOLR-6625-testfix.patch
          2 kB
          Ishan Chattopadhyaya
        28. SOLR-6625-testfix.patch
          1 kB
          Ishan Chattopadhyaya

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              gchanan Gregory Chanan
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: