-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
RabbitMQ HTTP API - Unable to provide default VHost value #768
Comments
This shoulds like a regression bug, right? We'll have a look at this, sorry about that! |
Yeah this is a bug we should fix. @quoimec would ve great if you can open PR with proposed change, since you have done the investigation. |
@holyketzer do you think you could take a look on this? |
ok |
Hey guys, yes it didn't support empty vhost. |
When setting up RabbitMQ, the default name that is created for a VHost is / (very weird I know). Normally, to use the HTTP API with this VHost, you can provide an encoded slash like %2f which allows you to access the VHost specific parts of the API. The changes introduced in Issue 700 that allowed access to the HTTP API over AMPQ, work when a named VHost is provided but when using either a /, %2f or nothing to represent the default VHost, the scaled object will not work and will be stuck at 0.
I don't know a lick of Go but I've dug through the code and I think some part of the URL parser that is being employed is stripping out the / value as the name of the VHost.
Expected Behavior
To be able to pass the default VHost name and have the deployment scale up and down.
Actual Behavior
The deployment immediately scales down to 0 and is unable to poll the API correctly.
Steps to Reproduce the Problem
The text was updated successfully, but these errors were encountered: