Skip to content

Conversation

@lukebakken
Copy link
Collaborator

The bug addressed by this PR was found while running the following command:

rabbitmqctl environment --formatter=json

...after configuring the rabbit application to use cacerts with a list of binaries as the value, rather than cacertfile.

This PR also fixes the formatting of the tcp_listeners and ssl_listeners output, because [5672] is a valid list of unicode codepoints that unicode:characters_to_binary will happily convert it, resulting in "tcp_listeners": "ᘨ" in the output.

I also ensured that the fixes in #14511 and #14398 still work as intended.

@lukebakken lukebakken marked this pull request as ready for review October 22, 2025 14:09
The bug addressed by this PR was found while running the following
command:

```
rabbitmqctl environment --formatter=json
```

...after configuring the `rabbit` application to use `cacerts` with a
list of binaries as the value, rather than `cacertfile`.

This PR also fixes the formatting of the `tcp_listeners` and
`ssl_listeners` output, because `[5672]` is a valid list of unicode
codepoints that `unicode:characters_to_binary` will happily convert it,
resulting in `"tcp_listeners": "ᘨ"` in the output.

I also ensured that the fixes in rabbitmq#14511 and rabbitmq#14398 still work as
intended.
@lukebakken lukebakken force-pushed the lukebakken/rabbitmq-server-14511-followup branch from 38334e7 to 4072326 Compare October 22, 2025 14:09
@michaelklishin michaelklishin merged commit ea1bf2c into rabbitmq:main Oct 22, 2025
289 checks passed
@lukebakken lukebakken deleted the lukebakken/rabbitmq-server-14511-followup branch October 22, 2025 17:15
michaelklishin added a commit that referenced this pull request Oct 23, 2025
Yet another JSON CLI formatter fix (backport #14773)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants