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:54:06 UTC

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


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

commit d2545632e836197ec24aa0930b9885a8cb168dd0
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 8819087ba02..24ba6dcfd21 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -119,6 +119,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);