Skip to content

Apache Lucene open-source search software

SOLR-333: Changed distributiondump.jsp to use Solr HOME instead of CWD to get path

William Auc56381bdab85
diff --git a/CHANGES.txt b/CHANGES.txt
index 4ef5d10ea0b..4a5cfce46af 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -156,6 +156,7 @@ Bug Fixes
10. SOLR-136: Snappuller - "date -d" and locales don't mix. (Jürgen Hermann via bill)
+11. SOLR-133: Changed distributiondump.jsp to use Solr HOME instead of CWD to set path.
Other Changes
1. SOLR-135: Moved common classes to org.apache.solr.common and altered the
diff --git a/src/webapp/resources/admin/distributiondump.jsp b/src/webapp/resources/admin/distributiondump.jsp
index b41174f3ff3..71cb41680e0 100644
--- a/src/webapp/resources/admin/distributiondump.jsp
+++ b/src/webapp/resources/admin/distributiondump.jsp
@@ -29,7 +29,7 @@
<%@include file="header.jsp" %>
<%
- File slaveinfo = new File(cwd + "/solr/logs/snappuller.status");
+ File slaveinfo = new File(solrHome + "logs/snappuller.status");
StringBuffer buffer = new StringBuffer();
StringBuffer buffer2 = new StringBuffer();
@@ -38,7 +38,7 @@
if (slaveinfo.canRead()) {
// Slave instance
mode = "Slave";
- File slavevers = new File(cwd + "/solr/logs/snapshot.current");
+ File slavevers = new File(solrHome + "logs/snapshot.current");
BufferedReader inforeader = new BufferedReader(new FileReader(slaveinfo));
BufferedReader versreader = new BufferedReader(new FileReader(slavevers));
buffer.append("<tr>\n" +
@@ -61,7 +61,7 @@
} else {
// Master instance
mode = "Master";
- File masterdir = new File(cwd + "/solr/logs/clients");
+ File masterdir = new File(solrHome + "logs/clients");
FilenameFilter sfilter = new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.startsWith("snapshot.status");