-
Notifications
You must be signed in to change notification settings - Fork 15
Fixed agency access #153
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
Fixed agency access #153
Conversation
mchacki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question on 6 places (same question)
Manual testing of the issue works as expected.
| scheme := NewURLSchemes(p.IsSecure).Browser | ||
| ep := fmt.Sprintf("%s://%s", scheme, net.JoinHostPort(p.Address, strconv.Itoa(port))) | ||
| c, err := clientBuilder([]string{ep}, false) | ||
| c, err := clientBuilder([]string{ep}, ConnectionTypeDatabase) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now has a different value for DontFollowRedirects is this correct?
| scheme := NewURLSchemes(p.IsSecure).Browser | ||
| ep := fmt.Sprintf("%s://%s", scheme, net.JoinHostPort(p.Address, strconv.Itoa(port))) | ||
| c, err := clientBuilder([]string{ep}, false) | ||
| c, err := clientBuilder([]string{ep}, ConnectionTypeDatabase) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now has a different value for DontFollowRedirects is this correct?
| // Check all | ||
| for _, ep := range endpoints { | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, false) | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, ConnectionTypeDatabase) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now has a different value for DontFollowRedirects is this correct?
| // Check all | ||
| for _, ep := range endpoints { | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, false) | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, ConnectionTypeDatabase) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now has a different value for DontFollowRedirects is this correct?
| // Check all | ||
| for _, ep := range endpoints { | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, false) | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, ConnectionTypeDatabase) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now has a different value for DontFollowRedirects is this correct?
| groupVersions := make([]string, len(endpoints)) | ||
| for i, ep := range endpoints { | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, false) | ||
| c, err := m.upgradeManagerContext.CreateClient([]string{ep}, ConnectionTypeDatabase) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now has a different value for DontFollowRedirects is this correct?
|
The answer is yes to all, allthough I'll do 1 more check for activefailover. For everything except agents, the follow-redirect is irrelevant because the servers will not yield a 307. |
|
i think you are right. 307 is never created by DBServers. |
This PR solves the problem that the starter could not talk the the agency (in 100% of the cases) when authentication was turned on.