Apache Lucene open-source search software
SOLR-14287: Admin UI Properties screen does not show colons (#1300)
Jan Høydahl198d9db67451
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 8216bc98880..e9df9b13317 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -188,10 +188,12 @@ Bug Fixes* SOLR-14250: Do not log error when trying to consume non-existing input stream due to Expect: 100-continue (janhoy)-* SOLR-13411: Deny atomic update for route.field, uniqueKey, version and throw exception. (Dr Oleg Savrasov via Mikhail Khludnev)+* SOLR-13411: Deny atomic update for route.field, uniqueKey, version and throw exception. (Dr Oleg Savrasov via Mikhail Khludnev)* SOLR-14252: Avoid NullPointerException in AggregateMetric. (Andy Webb via ab)+* SOLR-14287: Admin UI Properties screen does not show colons (janhoy)+Other Changes---------------------diff --git a/solr/webapp/web/js/angular/controllers/java-properties.js b/solr/webapp/web/js/angular/controllers/java-properties.jsindex 001edfb1a9c..817f98a7aa8 100644--- a/solr/webapp/web/js/angular/controllers/java-properties.js+++ b/solr/webapp/web/js/angular/controllers/java-properties.js@@ -25,18 +25,18 @@ solrAdminApp.controller('JavaPropertiesController',var props = [];for (var key in sysprops) {var value = sysprops[key];- var key = key.replace(/\./g, '.​');- if (key.indexOf(".path")!=-1 || key.indexOf(".dirs")) {- var values = [];- var parts = value.split(sep);- for (var i in parts) {- values.push({pos:i, value:parts[i]})- }- props.push({name: key, values: values});- } else {- props.push({name: key, values: [value]});+ var values = value.split(sep);+ if (value === sep) {+ values = [':'];}+ props.push({+ name: key.replace(/\./g, '.​')+ .replace(/</g, '<')+ .replace(/>/g, '>'),+ values: values+ });}+ $scope.pathSeparator = sep;$scope.props = props;});};diff --git a/solr/webapp/web/partials/java-properties.html b/solr/webapp/web/partials/java-properties.htmlindex 047de48d501..9c67c7b7593 100644--- a/solr/webapp/web/partials/java-properties.html+++ b/solr/webapp/web/partials/java-properties.html@@ -19,7 +19,7 @@ limitations under the License.<li ng-class="{odd:$odd}" ng-repeat="prop in props | orderObjectBy:'name'"><dl class="clearfix"><dt ng-bind-html="prop.name | unsafe"></dt>- <dd ng-class="{odd:$odd, multi:props.length>1}" ng-repeat="value in prop.values">{{value.value}}</dd>+ <dd ng-class="{odd:$odd, multi:props.length>1}"><span ng-repeat-start="val in prop.values">{{val}}</span><span ng-repeat-end ng-if="!$last">{{pathSeparator}}{{"​"}}</span></dd></dl></li></ul>