Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
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.