SOLR-5839: ZookeeperInfoServlet does not trim path properly.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1575592 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-03-08 19:05:24 +00:00
parent 4bfbd583d3
commit 3e397f0189
2 changed files with 4 additions and 1 deletions

View File

@ -141,6 +141,9 @@ Bug Fixes
* SOLR-5834: Overseer threads are only being interrupted and not closed.
(hossman, Mark Miller)
* SOLR-5839: ZookeeperInfoServlet does not trim path properly.
(Furkan KAMACI via Mark Miller)
Optimizations
----------------------
* SOLR-1880: Distributed Search skips GET_FIELDS stage if EXECUTE_QUERY

View File

@ -195,7 +195,7 @@ public final class ZookeeperInfoServlet extends HttpServlet {
if (path == null) {
path = "/";
} else {
path.trim();
path = path.trim();
if (path.length() == 0) {
path = "/";
}