Re: Make "hostContext" always be "/solr"?

2023-07-28 Thread Eric Pugh
Okay, if anyone wants to look at https://github.com/apache/solr/pull/1810, I think we’re ready for review. I ran the BATS tests locally and they passed, barring `test_placement_plugin.bats` which has often failed for me. We can keep this change on main, though there is a LOT of change, so it m

Re: Make "hostContext" always be "/solr"?

2023-07-28 Thread Gus Heck
That's precisely how we currently pretend /api isn't part of /solr right now (it's actually /solr/v2) https://github.com/apache/solr/blob/main/solr/server/etc/jetty.xml#L149 On Fri, Jul 28, 2023 at 1:38 PM Mark Miller wrote: > If you are just looking for a “path”, you could add a rewrite ru

Re: Make "hostContext" always be "/solr"?

2023-07-28 Thread Mark Miller
If you are just looking for a “path”, you could add a rewrite rule to jetty.xml as an equivalent I believe. On Fri, Jul 28, 2023 at 11:13 AM Jason Gerlowski wrote: > > I discovered that the “hostContext”, i.e the “/solr” bit of the URL can > actually be changed! > > 1. I wonder if/how this works

Re: Make "hostContext" always be "/solr"?

2023-07-28 Thread Jason Gerlowski
> I discovered that the “hostContext”, i.e the “/solr” bit of the URL can > actually be changed! 1. I wonder if/how this works outside of tests. Looking at jetty.xml, there's plenty of hardcoding of "/solr" in rewrite rules, etc. 2. I like the idea of having a configurable context-root in theor

Re: Make "hostContext" always be "/solr"?

2023-07-28 Thread Eric Pugh
I opened https://github.com/apache/solr/pull/1810 Would this be something that *could* be back ported to branch_9x? I added a test that if you have a hostContext defined in your solr.xml, it is ignored in favour of /solr.I don’t have any special logging around it however. Eric > On Jul