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 path parameters #266

Merged
merged 3 commits into from
Nov 2, 2023

Conversation

a10y
Copy link
Contributor

@a10y a10y commented Nov 1, 2023

Fix path parameters for barista annotations.

HttpServerExchanget#getPathParameters is not for path template params, it seems to be for semicolon-separated trailers at the end of the path string. See these tests from when HttpServerExchange#getPathParameters was added to undertow 10 years ago, and also RFC2396

cf. path template parsing code in Conjure.

I updated the smoketest to hit a new openEcho endpoint that receives a path param. The test fails without the change to EndpointRuntime.

@a10y a10y requested a review from mellreview as a code owner November 1, 2023 22:27
Copy link
Owner

@markelliot markelliot left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this up.

@markelliot markelliot enabled auto-merge (squash) November 2, 2023 01:13
@markelliot markelliot disabled auto-merge November 2, 2023 01:13
@markelliot markelliot enabled auto-merge (squash) November 2, 2023 01:17
@markelliot markelliot disabled auto-merge November 2, 2023 01:18
@markelliot markelliot merged commit a63983f into markelliot:develop Nov 2, 2023
2 checks passed
@a10y a10y deleted the aduffy/path-params branch November 2, 2023 01:19
@a10y
Copy link
Contributor Author

a10y commented Nov 2, 2023

Thanks Mark!

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.

2 participants