Skip to content

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Jul 24, 2025

When validation fails for a policy parameter, the resulting popup can't be read due to one extra binary encoding as well as code that escapes HTML entites. Since the EJS template uses <%= ... %> for the popup, it will display the text as-is, and not render any HTML.

The following definitions import, when imported into a 4.x broker via the management UI, will reproduce the issue:
defs-pp.json

Popup display when current main code is used:
image

Popup display when this PR is applied:
image

You can also observe this behavior in a 4.x broker by going to Admin -> Policies and creating a policy with ha-mode: all


This is an automatic backport of pull request #14277 done by Mergify.

When validation fails for a policy parameter, the resulting popup can't
be read due to one extra binary encoding as well as code that escapes
HTML entites. Since the EJS template uses `<%= >` for the popup, it will
display the text as-is, and not render any HTML.

(cherry picked from commit 5f5bf81)
@michaelklishin
Copy link
Collaborator

This removes a number of functions, so let's keep it 4.2.0-specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants