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
Service broker client does not handle redirects #1893
Labels
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/175213685 The labels on this github issue will be updated when the story is started. |
kirederik
pushed a commit
that referenced
this issue
Oct 12, 2020
kirederik
pushed a commit
that referenced
this issue
Oct 12, 2020
kirederik
pushed a commit
that referenced
this issue
Oct 12, 2020
Fixed by #1896 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
The service broker client in Cloud Controller does not appear to follow redirects (e.g.
301
).We've observed this in environments where
http
is redirected tohttps
, as is the case for service brokers that are deployed as apps on cf-for-k8s where this redirection is configured by default.Context
Brought to us via Slack by @reneighbor, this is resulting in failing CATS :
https://cloudfoundry.slack.com/archives/C017LDM6KTQ/p1602280933144500
Steps to Reproduce
The test makes a request like this:
And the asynchronous job eventually fails with an error like this:
Expected result
I would expect the service broker client to follow the redirect.
Current result
The service broker client does not follow the redirect and considers the
301
to be the final response.Possible Fix
Figure out why the client isn't following the redirect and see if you can make it do so. If this is impossible we can probably have the code check for redirect level status codes and manually remake the request to the correct endpoint as specified by the
Location
response header.https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301
The text was updated successfully, but these errors were encountered: