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(pdk): request.get_raw_query #10164

Closed
wants to merge 1 commit into from
Closed

fix(pdk): request.get_raw_query #10164

wants to merge 1 commit into from

Conversation

samugi
Copy link
Member

@samugi samugi commented Jan 24, 2023

Summary

Avoid accessing ngx.var.args and fetch the raw query string from the request_uri instead.

Alternatives could be restricting access to happen only via ngx.var.* or implementing some index clearing logic in lua-kong-nginx-module by patching set_uri_args().

Possibly going to close this in favor of: Kong/lua-kong-nginx-module#59

Fix #10080

KAG-410

@samugi samugi marked this pull request as draft January 24, 2023 17:02
@samugi samugi force-pushed the fix/pdk-get-raw-query branch from 315f318 to 60ca67e Compare January 24, 2023 17:21
Avoid accessing ngx.var.args and fetch the raw query string from the
request_uri.

Accessing ngx.var.args was causing issue #10080. We might want to
restrict access to happen solely via ngx.var.* in the future and/or to
implement some index refreshing logic in lua-kong-nginx-module but right
now this is the easiest way to avoid the problem in the pdk.
@samugi samugi force-pushed the fix/pdk-get-raw-query branch from 60ca67e to e19eaac Compare January 24, 2023 17:27
@RobSerafini RobSerafini added this to the 3.2 milestone Jan 24, 2023
@samugi
Copy link
Member Author

samugi commented Jan 27, 2023

closing in favor of: Kong/lua-kong-nginx-module#59

@samugi samugi closed this Jan 27, 2023
@samugi samugi deleted the fix/pdk-get-raw-query branch January 8, 2025 13:04
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.

kong.service.request.set_raw_query() doesn't work reliably
2 participants