[
https://issues.apache.org/jira/browse/SOLR-16911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17781707#comment-17781707
]
Jason Gerlowski commented on SOLR-16911:
----------------------------------------
Created a PR to remove that one dangling hostContext reference
[here|https://github.com/apache/solr/pull/2052].
I also looked briefly at adding a warning to 9.x for folks using 'hostContext',
but it looks like "hostContext" doesn't even work as intended there (at at
least, as I thought was intended). On both branch_9x and branch_9_4, setting
"hostContext" in solr.xml updates a few things (e.g. the /live_nodes entry in
ZK), but it doesn't impact the URL for hitting Solr's APIs in any way. v1 APIs
were still exposed under "/solr". (I did get the API path to change eventually
by changing a hard-coded value in
"solr/server/contexts/solr-jetty-context.xml". I wonder whether the
expectation had always been that the "hostContext" value in solr.xml was always
meant to go along with hand-edits to Jetty config files. I couldn't find any
docs on how this was initially conceived to work...)
Anyway, it's probably not worth adding an extra log message to highlight the
deprecation for any hostContext users on 9x, given that hostContext doesn't
work on that branch!
> Strip out configurable hostContext
> ----------------------------------
>
> Key: SOLR-16911
> URL: https://issues.apache.org/jira/browse/SOLR-16911
> Project: Solr
> Issue Type: Improvement
> Components: Server
> Affects Versions: main (10.0), 9.3
> Reporter: Eric Pugh
> Assignee: Eric Pugh
> Priority: Major
> Fix For: main (10.0)
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> Establish that /solr is always the hostContext, and remove the configurable
> nature. Keep the existing /api as well for V2 apis.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]