From e60a9d3d938543015847aa3024fa72b525d6cdb8 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Wed, 3 Dec 2025 11:04:34 -0800 Subject: [PATCH] Correct an invalid apply_to value on the policy declaration form "classic_queue" is not a value that would pass validation, the expected value is "classic_queues" (in plural). (cherry picked from commit f48e8dab4766d82c589fa7365a2b13653fee88f3) --- deps/rabbitmq_management/priv/www/js/global.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/rabbitmq_management/priv/www/js/global.js b/deps/rabbitmq_management/priv/www/js/global.js index 60715bbb4497..d600663d04eb 100644 --- a/deps/rabbitmq_management/priv/www/js/global.js +++ b/deps/rabbitmq_management/priv/www/js/global.js @@ -707,7 +707,7 @@ function DisplayControl() { this.vhosts = false this.rabbitmqVersions = false - this.update = function(overview, ui_data_model) { + this.update = function(overview, ui_data_model) { this.nodes = ac.canListNodes() && ui_data_model.nodes.length > 1 this.vhosts = ac.canAccessVhosts() this.rabbitmqVersions = false @@ -740,7 +740,7 @@ function setup_global_vars(overview) { '
  • Cluster ' + (user_administrator ? '' + cluster_name + '' : cluster_name) + '
  • ' ); - user_name = fmt_escape_html(user.name); + user_name = fmt_escape_html(user.name); $('#header #logout').prepend( 'User ' + (user_administrator && user.is_internal_user ? '' + user_name + '' : user_name) ); @@ -918,7 +918,7 @@ var QUEUE_TYPE = function (queue) { QUEUE_TYPE["default"] = { label: "Default", params: {}, - policy_apply_to: "classic_queue", + policy_apply_to: "classic_queues", actions: { get_message: true, purge: true @@ -938,7 +938,7 @@ QUEUE_TYPE["default"] = { QUEUE_TYPE["classic"] = { label: "Classic", params: {}, - policy_apply_to: "classic_queue", + policy_apply_to: "classic_queues", actions: { get_message: true, purge: true