You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2021/03/10 09:53:59 UTC
[lucene] 45/45: SOLR-15216 Fix for Invalid Reference to
data.followers in Admin UI (#2456)
This is an automated email from the ASF dual-hosted git repository.
dweiss pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene.git
commit d76dfaf68a86fe3609315f2d37a1edbe43f6b439
Author: Dean Pearce <he...@deanpearce.me>
AuthorDate: Tue Mar 9 18:40:00 2021 -0500
SOLR-15216 Fix for Invalid Reference to data.followers in Admin UI (#2456)
* SOLR-15216 Fix for incorrect reference to data.followers when API in 8.x returns data.slave.
* SOLR-15216 Update CHANGES.txt with bug fix.
---
solr/CHANGES.txt | 4 +++-
solr/webapp/web/js/angular/controllers/replication.js | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 75e6395..7d80887 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -40,7 +40,7 @@ Improvements
* SOLR-15191: Enhance hash method of JSON faceting to support EnumFieldType and perhaps some other/custom field types
too. (Thomas Wöckinger, David Smiley)
-* SOLR-15194: Allow Solr to make outbound non SSL calls to a JWT IDP via -Dsolr.auth.jwt.allowOutboundHttp=true property. (Eric Pugh)
+* SOLR-15194: Allow Solr to make outbound non SSL calls to a JWT IDP via -Dsolr.auth.jwt.allowOutboundHttp=true property. (Eric Pugh)
* SOLR-15154: Let Http2SolrClient pass Basic Auth credentials to all requests (Tomás Fernández Löbbe)
@@ -64,6 +64,8 @@ Bug Fixes
* SOLR-15191: Fix JSON Faceting on EnumFieldType if allBuckets, numBuckets or missing is set.
(Thomas Wöckinger, David Smiley)
+* SOLR-15216: Fix for Invalid Reference to data.followers in Admin UI. (Dean Pearce)
+
Other Changes
---------------------
* SOLR-15118: Deprecate CollectionAdminRequest.getV2Request(). (Jason Gerlowski)
diff --git a/solr/webapp/web/js/angular/controllers/replication.js b/solr/webapp/web/js/angular/controllers/replication.js
index 21e72ba..4c83faf 100644
--- a/solr/webapp/web/js/angular/controllers/replication.js
+++ b/solr/webapp/web/js/angular/controllers/replication.js
@@ -195,7 +195,7 @@ var getFollowerSettings = function(data) {
} else if (!settings.isPollingDisabled && settings.pollInterval) {
if( settings.nextExecutionAt ) {
settings.nextExecutionAtEpoch = parseDateToEpoch(settings.nextExecutionAt);
- settings.currentTime = parseDateToEpoch(data.follower.currentDate);
+ settings.currentTime = parseDateToEpoch(data.slave.currentDate);
if( settings.nextExecutionAtEpoch > settings.currentTime) {
settings.isApprox = false;