Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-3040 The DIH's admin UI (dataimport.jsp) now requires DIH request handlers to start with a '/'.

David Wayne Smileyeffbca10e21b
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 4c37a3f77c5..9feb6ba1a52 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -453,6 +453,9 @@ Upgrading from Solr 3.5
HTMLStripCharFilter in Solr version 3.5 and earlier: the old implementation
(bugs and all) is preserved as LegacyHTMLStripCharFilter.
+* SOLR-3040: The DIH's admin UI (dataimport.jsp) now requires DIH request handlers to start with
+ a '/'. (dsmiley)
+
New Features
----------------------
* SOLR-2904: BinaryUpdateRequestHandler should be able to accept multiple update requests from
diff --git a/solr/contrib/dataimporthandler/src/webapp/admin/dataimport.jsp b/solr/contrib/dataimporthandler/src/webapp/admin/dataimport.jsp
index 574ef67509e..667f8947d54 100644
--- a/solr/contrib/dataimporthandler/src/webapp/admin/dataimport.jsp
+++ b/solr/contrib/dataimporthandler/src/webapp/admin/dataimport.jsp
@@ -47,7 +47,7 @@ Select handler:
<frameset cols = "50%, 50%">
<frame src ="debug.jsp?handler=<%=handler%>" />
- <frame src ="../select?qt=<%=handler%>&command=status" name="result"/>
+ <frame src ="..<%=handler%>?command=status" name="result"/>
</frameset>
<% } %>
</html>
diff --git a/solr/contrib/dataimporthandler/src/webapp/admin/debug.jsp b/solr/contrib/dataimporthandler/src/webapp/admin/debug.jsp
index b24ae83fc9f..2c76ce728c8 100644
--- a/solr/contrib/dataimporthandler/src/webapp/admin/debug.jsp
+++ b/solr/contrib/dataimporthandler/src/webapp/admin/debug.jsp
@@ -30,9 +30,8 @@
<%
String handler = request.getParameter("handler"); // must be specified
%>
-<form action="../select" target="result" method="get">
+<form action="..<%=handler%>" target="result" method="get">
<input type="hidden" name="debug" value="on"/>
-<input type="hidden" name="qt" value="<%=handler%>"/>
<table>
<tr>
<th>Handler: </th>
@@ -69,17 +68,16 @@
<tr>
<td colspan="2"><textarea id="txtDataConfig" rows="30" cols="80" name="dataConfig"></textarea></td>
<script type="text/javascript" language="javascript">
- $.get("../select?qt=<%=handler%>&command=show-config", function(data){
+ $.get("..<%=handler%>?command=show-config", function(data){
$('#txtDataConfig').attr('value', data);
});
</script>
</tr>
</table>
</form>
-<form action="../select" target="result" method="get">
+<form action="..<%=handler%>" target="result" method="get">
<input type="hidden" name="clean" value="false">
<input type="hidden" name="commit" value="true">
- <input type="hidden" name="qt" value="<%=handler%>"/>
<input class="stdbutton" type="submit" name="command" value="full-import">
<input class="stdbutton" type="submit" name="command" value="delta-import">
<input class="stdbutton" type="submit" name="command" value="status">
@@ -92,8 +90,7 @@
<input type="hidden" name="rows" value="0">
<input class="stdbutton" type="submit" value="Documents Count">
</form>
-<form action="../select" target="result" method="get">
- <input type="hidden" name="qt" value="<%=handler%>"/>
+<form action="..<%=handler%>" target="result" method="get">
<input type="hidden" name="verbose" value="true">
<input type="hidden" name="clean" value="true">
<input type="hidden" name="commit" value="true">