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

Investigate avoiding Jetty "____v2" path rewrite

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • v2 API
    • None

    Description

      Users of Solr's v2 API submit requests whose paths start with "/api". Internally however, these paths are rewritten by a Jetty pre-filter to instead start with "/solr/____v2". This was done in SOLR-8045 as a way to provide distinct user-facing URLs while still keeping all requests within a single servlet that Solr offers at "/solr".

      While this is invisible to users in the majority of cases, it does find ways to periodically leak out. In particular it can surprise plugin writers who find that the path referenced in their SolrQueryRequest or HttpServletRequest object looks very different from what they'd expect.

      We should see if there's a cleaner way to implement this, that avoids this pitfall.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gerlowskija Jason Gerlowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: