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

fix: support trailing slashes in listener URLs #5076

Merged
merged 1 commit into from Apr 16, 2020

Conversation

agavra
Copy link
Contributor

@agavra agavra commented Apr 16, 2020

Description

fixes #4668

Testing done

unit testing, local testing spinning up a node with trailing slash and ran a query

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

Comment on lines -332 to -334
if (!replaceHost && listener.getPort() > 0) {
return listener;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can always sanitize - no reason not to (e.g. to remove the trailing slash)

Co-authored-by: Steven Zhang <stevenz@confluent.io>
@agavra agavra marked this pull request as ready for review April 16, 2020 00:29
@agavra agavra requested a review from a team as a code owner April 16, 2020 00:29
Copy link
Member

@vpapavas vpapavas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you @agavra !

@agavra agavra merged commit e9e0431 into confluentinc:5.4.x Apr 16, 2020
@agavra agavra deleted the fix_trailing_slash branch April 16, 2020 01:38
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.

None yet

2 participants