Apache Lucene open-source search software
SOLR-7369: AngularJS UI insufficient URLDecoding in cloud/tree view
Jan Høydahlde61fa6f3c9e
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 516863edc1a..dbd98df1669 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -101,6 +101,8 @@ Bug Fixes* SOLR-7370: FSHDFSUtils#recoverFileLease tries to recover the lease every one second afterthe first four second wait. (Mark Miller)+* SOLR-7369: AngularJS UI insufficient URLDecoding in cloud/tree view (janhoy)+Optimizations----------------------diff --git a/solr/webapp/web/js/angular/controllers/cloud.js b/solr/webapp/web/js/angular/controllers/cloud.jsindex e0f24416a1b..738371442d0 100644--- a/solr/webapp/web/js/angular/controllers/cloud.js+++ b/solr/webapp/web/js/angular/controllers/cloud.js@@ -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( '.' );