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:57:12 UTC

[solr] branch branch_9_2 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 branch_9_2
in repository https://gitbox.apache.org/repos/asf/solr.git


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

commit 5166ad587e08ee8f37bd04aebff963efbc61f147
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 434eb723cdb..b4ad929064c 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -11,6 +11,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
 ---------------------
 (No changes)
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);