Skip to content

Reties With not empty URL Path #657

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

Merged
merged 4 commits into from
Apr 27, 2023
Merged

Reties With not empty URL Path #657

merged 4 commits into from
Apr 27, 2023

Conversation

f-dg
Copy link

@f-dg f-dg commented Apr 11, 2023

transport builds an incorrect request path if the address is configured with a path, for example:

	eCnf := elasticsearch.Config{
		Addresses: []string{
			"https://server.com/somepath"
		},
	}

it happens when retries is enabled and the API returns an error, transports adds to the request "/somepath" on each retry instead of building a new path.

transport builds an incorrect request path if the address is configured with a path, for example:

```
	eCnf := elasticsearch.Config{
		Addresses: []string{
			"https://server.com/somepath"
		},
	}
``` 
it happens when retries is enabled and the API returns an error, transports adds to the request "/somepath" on each retry instead of building a new path.
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@cla-checker-service
Copy link

cla-checker-service bot commented Apr 11, 2023

💚 CLA has been signed

@f-dg
Copy link
Author

f-dg commented Apr 11, 2023

Please pay attention to that this bug has migrated to V8

@Anaethelion
Copy link
Contributor

Hi @f-dg

Thank you for noticing this, LGTM!
I'll push a minor change and adapt a test to reflect the fix.

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