Skip to content

fix(router) prefix match no longer normalize input #9389

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 2 commits into from
Sep 7, 2022

Conversation

StarlightIbuki
Copy link
Contributor

We should make it consistent with regex paths, so we do not normalize user input paths.

This PR also includes migration.

Remember to add downgrade support for this to EE.

@chronolaw chronolaw added this to the 3.0 milestone Sep 7, 2022
@chronolaw
Copy link
Contributor

Should we change the line 235 in atc_compat.lua, and remove localization of normalize ?

@pull-request-size pull-request-size bot added size/M and removed size/S labels Sep 7, 2022
@StarlightIbuki StarlightIbuki force-pushed the fix/route_prefix_normalize branch from 93ee5e9 to 1fd17c8 Compare September 7, 2022 08:01
@StarlightIbuki StarlightIbuki force-pushed the fix/route_prefix_normalize branch from 1fd17c8 to fa46329 Compare September 7, 2022 08:04
@chronolaw
Copy link
Contributor

Could we add some special test cases for this change? for example, path likes %2f%2e.

@chronolaw chronolaw requested a review from bungle September 7, 2022 08:28
@StarlightIbuki
Copy link
Contributor Author

Could we add some special test cases for this change? for example, path likes %2f%2e.

added

Copy link
Member

@dndx dndx left a comment

Choose a reason for hiding this comment

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

This LGTM, I will leave some time for others to review, but otherwise merge it tomorrow. Thanks @suika-kong @chronolaw for the quick turnaround!

@kikito
Copy link
Member

kikito commented Sep 7, 2022

Notice that this PR currently targets master. In order for it to be included in 3.0 two things need to happen, just to make sure that we don't miss any steps:

  • It needs to be cherry-picked on the kong/release/3.0.x branch (for release on CE)
  • A cherry-pick PR needs to be sent against the 3.0 EE master branch
  • And then cherry-picked from there to the next/3.0.x.x EE release branch

@tyler-ball tyler-ball merged commit a847c0d into master Sep 7, 2022
tyler-ball pushed a commit that referenced this pull request Sep 7, 2022
tests(router): test for removed normalization
tyler-ball pushed a commit that referenced this pull request Sep 7, 2022
tests(router): test for removed normalization
@tyler-ball tyler-ball deleted the fix/route_prefix_normalize branch September 7, 2022 19:00
chronolaw added a commit that referenced this pull request Sep 8, 2022
chronolaw added a commit that referenced this pull request Sep 21, 2022
chronolaw added a commit that referenced this pull request Sep 26, 2022
chronolaw added a commit that referenced this pull request Oct 6, 2022
chronolaw added a commit that referenced this pull request Oct 9, 2022
dndx pushed a commit that referenced this pull request Oct 10, 2022
* rename `atc_compat.lua` to `compat.lua`
* add a new file `expressions.lua`
* move lots of logic into `atc.lua`
* rename `get_atc` to `get_expression`
* rename `route_priority` to `get_priority`
* rename `atc_escape_str `to `escape_str`
* remove function `paths_resort`
* transplant #9327 
* transplant #9329 
* transplant #9343
* transplant #9346
* transplant #9357
* transplant #9389
* transplant #9394
* transplant #9451
* transplant #9480
oowl pushed a commit to oowl/kong that referenced this pull request Oct 12, 2022
* rename `atc_compat.lua` to `compat.lua`
* add a new file `expressions.lua`
* move lots of logic into `atc.lua`
* rename `get_atc` to `get_expression`
* rename `route_priority` to `get_priority`
* rename `atc_escape_str `to `escape_str`
* remove function `paths_resort`
* transplant Kong#9327 
* transplant Kong#9329 
* transplant Kong#9343
* transplant Kong#9346
* transplant Kong#9357
* transplant Kong#9389
* transplant Kong#9394
* transplant Kong#9451
* transplant Kong#9480
locao pushed a commit that referenced this pull request Jun 21, 2024
* feat(wasm): add support for wasmtime cache

This adds support for Wasmtime's module caching.
See also:

* Kong/ngx_wasm_module#540
* https://github.com/Kong/ngx_wasm_module/blob/b19d405403ca6765c548e571010aea3af1accaea/docs/DIRECTIVES.md?plain=1#L136-L149
* https://docs.wasmtime.dev/cli-cache.html

* tests(wasm): add start/restart test for wasmtime cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants