Skip to content

Handle path prefixes when creating clients using URIs #979

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 1 commit into from
Apr 2, 2025

Conversation

swallez
Copy link
Member

@swallez swallez commented Apr 2, 2025

Fixes the new client constructors that accept java.net.URI that were ignoring the path part. Also ensures all URIs have the same path, as RestClient and Rest5Client accept a single path prefix common to all nodes.

@swallez swallez added Category: Bug Something isn't working backport 9.0 labels Apr 2, 2025
@swallez swallez requested a review from l-trotta April 2, 2025 07:11
@swallez swallez merged commit d226691 into main Apr 2, 2025
10 checks passed
@swallez swallez deleted the fix-path-prefix branch April 2, 2025 08:22
swallez added a commit that referenced this pull request Apr 2, 2025
Co-authored-by: Sylvain Wallez <sylvain@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 9.0 Category: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants