Skip to content

Conversation

@ewoutp
Copy link
Contributor

@ewoutp ewoutp commented Apr 26, 2018

This PR solves the problem that the starter could not talk the the agency (in 100% of the cases) when authentication was turned on.

Copy link

@mchacki mchacki left a 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)
Copy link

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)
Copy link

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)
Copy link

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)
Copy link

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)
Copy link

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)
Copy link

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?

@ewoutp
Copy link
Contributor Author

ewoutp commented Apr 26, 2018

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.

@ewoutp ewoutp merged commit aa3fd3e into master Apr 26, 2018
@ewoutp ewoutp deleted the agency-redirect-fix branch April 26, 2018 15:28
@mchacki
Copy link

mchacki commented Apr 26, 2018

i think you are right. 307 is never created by DBServers.

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

Successfully merging this pull request may close these issues.

3 participants