You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by tf...@apache.org on 2023/05/05 21:49:30 UTC

[solr] branch main updated: SOLR-16789: Admin UI Dashboard shows "unauthenticated" warning on authenticated servers (#1628)

This is an automated email from the ASF dual-hosted git repository.

tflobbe pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new d9ddba3ac51 SOLR-16789: Admin UI Dashboard shows "unauthenticated" warning on authenticated servers (#1628)
d9ddba3ac51 is described below

commit d9ddba3ac51ece953d762c796f62730e27629966
Author: Tomas Eduardo Fernandez Lobbe <tf...@apache.org>
AuthorDate: Fri May 5 14:49:25 2023 -0700

    SOLR-16789: Admin UI Dashboard shows "unauthenticated" warning on authenticated servers (#1628)
---
 solr/CHANGES.txt                                | 2 ++
 solr/webapp/web/js/angular/controllers/index.js | 4 ++++
 2 files changed, 6 insertions(+)

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);