SOLR-8074: LoadAdminUIServlet directly references admin.html

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1710271 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2015-10-23 17:23:55 +00:00
parent 4af4c701b2
commit d3d9d353af
2 changed files with 4 additions and 1 deletions

View File

@ -373,6 +373,8 @@ Other Changes
* SOLR-8116: SearchGroupsResultTransformer tweaks (String literals, list/map initialCapacity)
(Christine Poerschke)
* SOLR-8074: LoadAdminUIServlet directly references admin.html (Mark Miller, Upayavira)
================== 5.3.1 ==================
Bug Fixes

View File

@ -47,8 +47,9 @@ public final class LoadAdminUiServlet extends BaseSolrServlet {
response.addHeader("X-Frame-Options", "DENY"); // security: SOLR-7966 - avoid clickjacking for admin interface
// This attribute is set by the SolrDispatchFilter
String admin = request.getRequestURI().substring(request.getContextPath().length());
CoreContainer cores = (CoreContainer) request.getAttribute("org.apache.solr.CoreContainer");
InputStream in = getServletContext().getResourceAsStream("/admin.html");
InputStream in = getServletContext().getResourceAsStream(admin);
if(in != null && cores != null) {
try {
response.setCharacterEncoding("UTF-8");