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

Unable to update the Broker with a new Broker URL #796

Open
valiparsa opened this issue Feb 21, 2024 · 0 comments
Open

Unable to update the Broker with a new Broker URL #796

valiparsa opened this issue Feb 21, 2024 · 0 comments

Comments

@valiparsa
Copy link

Describe the problem:

I'm trying to update the registration of the Broker by the ServiceManager and it fails with this error:

$ smctl update-broker my-broker '{"credentials":{"tls":{"sm_provided_tls_credentials": true}}, "broker_url":"*****"}'
Error: request PATCH https://*****?async=false failed: StatusCode: 400 Body: {"error":"BadRequest","description":"updating a url of a broker requires its credentials"}

As per the implementation, if the "sm_provided_tls_credentials": true is set it should not return this error message updating a url of a broker requires its credentials, am I right?

Steps to reproduce:

  1. Register the Broker
  2. Update the Broker with different broker_url

Observed Results:

$ smctl update-broker my-broker '{"credentials":{"tls":{"sm_provided_tls_credentials": true}}, "broker_url":"*****"}'
Error: request PATCH https://*****?async=false failed: StatusCode: 400 Body: {"error":"BadRequest","description":"updating a url of a broker requires its credentials"}

Expected Results:

  • Broker registration should be updated with the new Broker URL.

Relevant Code Snippet:

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

No branches or pull requests

1 participant