[
https://issues.apache.org/jira/browse/SOLR-513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lars Kotthoff updated SOLR-513:
-------------------------------
Attachment: SOLR-513.patch
I've had a look at this again. As far as I can see, there's no way to get the
pathPrefix in the jsp without jumping through some major hoops. Therefore I've
decided to try a different approach.
Instead of changing the links in index.jsp I've changed the included _info.jsp
to redirect requests to /solr/admin/ to /solr/coreName/admin/. This also makes
it explicit which core is used.
I personally think that the default behaviour of randomly picking a core when
none is specified in a multicore configuration should be changed to showing an
error message or specifying a default core in the multicore configuration. I
don't think that the current behaviour should be supported in the future as you
can't be sure which core will be selected and it's therefore a potential source
of errors. Also it's using a deprecated method to get a core.
Attaching patch which makes the necessary changes to _info.jsp. Tested with
multicore configuration on Tomcat and single core configuration on Jetty.
> Links to core admin pages are broken in default admin page
> ----------------------------------------------------------
>
> Key: SOLR-513
> URL: https://issues.apache.org/jira/browse/SOLR-513
> Project: Solr
> Issue Type: Bug
> Components: web gui
> Affects Versions: 1.3
> Reporter: Lars Kotthoff
> Assignee: Erik Hatcher
> Priority: Trivial
> Fix For: 1.3
>
> Attachments: SOLR-513.patch, solr-admin-links.patch
>
>
> The index.jsp page builds the link to the admin pages for cores in a
> multicore configuration by appending the name of the core to ../../. This
> works on the admin pages for individual cores, but not on the default admin
> page -- http://localhost:8080/solr/admin/. The links point to
> http://localhost:8080/core0/admin etc.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.