Preserve path encoded subjects in middleware#1526
Merged
weeco merged 2 commits intoredpanda-data:masterfrom Dec 3, 2024
Merged
Preserve path encoded subjects in middleware#1526weeco merged 2 commits intoredpanda-data:masterfrom
weeco merged 2 commits intoredpanda-data:masterfrom
Conversation
Update basePathMiddleware to use `RawPath` (if present) over `Path` to ensure that URL path encoded subjects are preserved when routing requests. Update the middleware to also remove the prefix from `RawPath` for consistency. Fixes redpanda-data#1525.
|
|
weeco
approved these changes
Dec 3, 2024
Contributor
|
Thanks for raising the issue and taking the time to fix it with this PR @pkwarren ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update basePathMiddleware to use
RawPath(if present) overPathto ensure that URL path encoded subjects are preserved when routing requests.Update the middleware to also remove the prefix from
RawPathfor consistency.Fixes #1525.