Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16789: Admin UI Dashboard shows "unauthenticated" warning on authenticated servers (#1628)

Tomas Eduardo Fernandez Lobbed9ddba3ac51e
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 205c3db6dba..b7a2327c652 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -151,6 +151,8 @@ Bug Fixes
* SOLR-16783: Fixed race condition deleting empty `clusterstate.json` file that could prevent Solr 9 instances from starting with a NoNodeException (Tomás Fernández Löbbe)
+* SOLR-16789: Fixed Admin UI dashboard "Security" panel to show the right information regarding authentication (Tomás Fernández Löbbe)
+
Dependency Upgrades
---------------------
* PR#1494: Upgrade forbiddenapis to 3.5 (Uwe Schindler)
diff --git a/solr/webapp/web/js/angular/controllers/index.js b/solr/webapp/web/js/angular/controllers/index.js
index 68803bcf2ea..c744ef44c3f 100644
--- a/solr/webapp/web/js/angular/controllers/index.js
+++ b/solr/webapp/web/js/angular/controllers/index.js
@@ -29,6 +29,10 @@ solrAdminApp.controller('IndexController', function($scope, System, Cores, Const
sessionStorage.setItem("auth.username", data.security.username);
}
+ if (data.security.authenticationPlugin) {
+ $scope.isSecurityEnabled = true
+ }
+
// load average, unless its negative (means n/a on windows, etc)
if (data.system.systemLoadAverage >= 0) {
$scope.load_average = data.system.systemLoadAverage.toFixed(2);