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

Config Client: Fix logic to try all URLs #2763

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marnee01
Copy link
Contributor

There was a miss when implementing the MultipleUriStrategy.ALWAYS. It was not trying the next URL if response was null, or if the HTTP Status Code was not OK, but no exception was thrown.

(This author does not know under what scenario null would be returned as a response, but the code was already checking for it, so I updated the logic to also try the next URL for null response.)

Closes gh-2735

There was a miss when implementing the MultipleUriStrategy.ALWAYS.
It was not trying the next URL if response was null, or if
the HTTP Status Code was not OK, but no exception was thrown.

(This author does not know under what scenario null would be
returned as a response, but the code was already checking for it,
so I updated the logic to also try the next URL for null response.)

Closes spring-cloudgh-2735

Signed-off-by: Marnee DeRider <[email protected]>
@marnee01
Copy link
Contributor Author

In order to get the DCO check to complete, do I need to do something in my repo fork? I reread the instructions in the README about contributing and I didn't see any instructions regarding how to create a PR at all.

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.

Next URL is not attempted if not successful, but exception is not thrown
2 participants