SOLR-7369: AngularJS UI insufficient URLDecoding in cloud/tree view

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1672637 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jan Høydahl 2015-04-10 12:59:03 +00:00
parent 3464197249
commit de61fa6f3c
2 changed files with 3 additions and 1 deletions

View File

@ -101,6 +101,8 @@ Bug Fixes
* SOLR-7370: FSHDFSUtils#recoverFileLease tries to recover the lease every one second after
the first four second wait. (Mark Miller)
* SOLR-7369: AngularJS UI insufficient URLDecoding in cloud/tree view (janhoy)
Optimizations
----------------------

View File

@ -49,7 +49,7 @@ var treeSubController = function($scope, Zookeeper) {
$scope.showData = false;
$scope.showTreeLink = function(link) {
var path = link.replace(/.*path=/, "").replace("%2F", "/");
var path = decodeURIComponent(link.replace(/.*[\\?&]path=([^&#]*).*/, "$1"));
Zookeeper.detail({path: path}, function(data) {
$scope.znode = data.znode;
var path = data.znode.path.split( '.' );