Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-350: fix JSPs broken by previous patch

Yonik Seeleyd5620505bf30
diff --git a/src/webapp/resources/admin/index.jsp b/src/webapp/resources/admin/index.jsp
index 4ffe724408f..b033cb0c9ff 100644
--- a/src/webapp/resources/admin/index.jsp
+++ b/src/webapp/resources/admin/index.jsp
@@ -47,7 +47,7 @@
</tr>
<%-- List the cores (that arent this one) so we can switch --%>
-<% java.util.Collection<SolrCore> cores = org.apache.solr.core.MultiCore.getRegistry().getCores();
+<% java.util.Collection<SolrCore> cores = org.apache.solr.core.SolrMultiCore.getInstance().getCores();
if (cores.size() > 1) {%><tr><td><strong>Cores:</strong><br></td><td><%
java.util.Iterator<SolrCore> icore = cores.iterator();
while (icore.hasNext()) {
diff --git a/src/webapp/resources/admin/logging.jsp b/src/webapp/resources/admin/logging.jsp
index 7d5ee3f7225..e94004e0981 100644
--- a/src/webapp/resources/admin/logging.jsp
+++ b/src/webapp/resources/admin/logging.jsp
@@ -31,7 +31,7 @@
SolrCore core = (SolrCore) request.getAttribute("org.apache.solr.SolrCore");
if (core == null) {
String coreParam = request.getParameter("core");
- core = coreParam != null? org.apache.solr.core.MultiCore.getRegistry().getCore(coreParam) : null;
+ core = coreParam != null? org.apache.solr.core.SolrMultiCore.getInstance().getCore(coreParam) : null;
}
if (core == null)
core = SolrCore.getSolrCore();
diff --git a/src/webapp/resources/admin/ping.jsp b/src/webapp/resources/admin/ping.jsp
index 746c9bcec68..bdc962031bb 100644
--- a/src/webapp/resources/admin/ping.jsp
+++ b/src/webapp/resources/admin/ping.jsp
@@ -28,7 +28,7 @@
SolrCore core = (SolrCore) request.getAttribute("org.apache.solr.SolrCore");
if (core == null) {
String coreParam = request.getParameter("core");
- core = coreParam != null? org.apache.solr.core.MultiCore.getRegistry().getCore(coreParam) : null;
+ core = coreParam != null? org.apache.solr.core.SolrMultiCore.getInstance().getCore(coreParam) : null;
}
if (core == null)
core = SolrCore.getSolrCore();
diff --git a/src/webapp/resources/admin/raw-schema.jsp b/src/webapp/resources/admin/raw-schema.jsp
index 450e81b4f6b..1a1edc6c5f6 100644
--- a/src/webapp/resources/admin/raw-schema.jsp
+++ b/src/webapp/resources/admin/raw-schema.jsp
@@ -30,7 +30,7 @@
SolrCore core = (SolrCore) request.getAttribute("org.apache.solr.SolrCore");
if (core == null) {
String coreParam = request.getParameter("core");
- core = coreParam != null? org.apache.solr.core.MultiCore.getRegistry().getCore(coreParam) : null;
+ core = coreParam != null? org.apache.solr.core.SolrMultiCore.getInstance().getCore(coreParam) : null;
}
if (core == null)
core = SolrCore.getSolrCore();
diff --git a/src/webapp/resources/admin/threaddump.jsp b/src/webapp/resources/admin/threaddump.jsp
index 17ce67a2956..3ce2d10cacc 100644
--- a/src/webapp/resources/admin/threaddump.jsp
+++ b/src/webapp/resources/admin/threaddump.jsp
@@ -27,7 +27,7 @@
SolrCore core = (SolrCore) request.getAttribute("org.apache.solr.SolrCore");
if (core == null) {
String coreParam = request.getParameter("core");
- core = coreParam != null? org.apache.solr.core.MultiCore.getRegistry().getCore(coreParam) : null;
+ core = coreParam != null? org.apache.solr.core.SolrMultiCore.getInstance().getCore(coreParam) : null;
}
if (core == null)
core = SolrCore.getSolrCore();
diff --git a/src/webapp/resources/index.jsp b/src/webapp/resources/index.jsp
index f4b125ae6ab..4848dc1e196 100644
--- a/src/webapp/resources/index.jsp
+++ b/src/webapp/resources/index.jsp
@@ -28,7 +28,7 @@
<a href="."><img border="0" align="right" height="61" width="142" src="admin/solr-head.gif" alt="Solr"/></a>
<%
- org.apache.solr.core.MultiCore multicore = org.apache.solr.core.MultiCore.getRegistry();
+ org.apache.solr.core.MultiCore multicore = org.apache.solr.core.SolrMultiCore.getInstance();
if( multicore.isEnabled() ) {
for( org.apache.solr.core.SolrCore core : multicore.getCores() ) {%>
<a href="<%= core.getName() %>/admin/">Admin <%= core.getName() %> </a><br/>