Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Jul 1, 2024

rabbit_mgmt_util:internal_server_error/4 expects an atom or binary and a string formattable term (~ts) as arguments but rabbit_mgmt_wm_vhost passes charlists and any term. This can cause a log formatter crash and an unexpected message in the management UI when attempting to add a vhost while a cluster is in a minority with Khepri enabled for example.

We can pass atoms for the Error parameter and binaries or strings for the Reason parameter to fix both issues.


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

`rabbit_mgmt_util:internal_server_error/4` expects an atom or binary
and a string formattable term (`~ts`) as arguments but
`rabbit_mgmt_wm_vhost` passes charlists and any term. This can cause
a log formatter crash and an unexpected message in the management UI
when attempting to add a vhost while a cluster is in a minority with
Khepri enabled for example.

We can pass atoms for the `Error` parameter and binaries or strings for
the `Reason` parameter to fix both issues.

(cherry picked from commit 8f60b69)
@michaelklishin
Copy link
Collaborator

rabbitmq_management failures are unrelated to this PR. I'm working on them.

@michaelklishin michaelklishin merged commit e22055e into v3.13.x Jul 1, 2024
@michaelklishin michaelklishin deleted the mergify/bp/v3.13.x/pr-11585 branch July 1, 2024 05:00
@michaelklishin michaelklishin added this to the 3.13.4 milestone Jul 1, 2024
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.

3 participants