Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix /api/connections/username/{username} internal errors #8483

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

SimonUnge
Copy link
Member

@SimonUnge SimonUnge commented Jun 5, 2023

Closes #8482, references #5319.

Calling GET /api/connections/username/{username} as a policymaker/management user leads to a 500 internal error.

Calling DETETE on /api/connections/username/{username} as policymaker/monitor/management user leads to 500 internal error.

rabbit_mgmt_wm_connection_user_name calls rabbit_mgmt_util:is_authorized_user/3 with a tuple as the 3rd argument, but it needs to be list with tuples.

@michaelklishin michaelklishin changed the title Fix /api/connections/username internal error bug Fix /api/connections/username/{username} internal errors Jun 6, 2023
@michaelklishin
Copy link
Member

Apparently #5319 had no tests.

I will start by adding some to Hop and rabbit-hole, this is something that's more convenient to test in an HTTP API client library.

@michaelklishin michaelklishin merged commit 3f9e93c into rabbitmq:main Jun 6, 2023
michaelklishin added a commit that referenced this pull request Jun 6, 2023
Fix /api/connections/username/{username} internal errors (backport #8483)
michaelklishin added a commit to michaelklishin/rabbit-hole that referenced this pull request Jun 6, 2023
michaelklishin added a commit to michaelklishin/rabbit-hole that referenced this pull request Jun 6, 2023
and rabbitmq/rabbitmq-server#5319.

Currently skipped, as they will fail on all GA releases
available right now. They do pass against RabbitMQ main and 3.12, 3.11
release branches with a backport.
michaelklishin added a commit that referenced this pull request Jun 6, 2023
Fix /api/connections/username/{username} internal errors (backport #8483) (backport #8485)
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.

GET /api/connections/username/{username} fails with a 500
2 participants