-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat(proxy-rewrite): create use_real_request_uri_unsafe option #7401
Merged
spacewander
merged 13 commits into
apache:master
from
ilteriseroglu-ty:feat-proxy-rewrite-unsafe
Jul 19, 2022
Merged
feat(proxy-rewrite): create use_real_request_uri_unsafe option #7401
spacewander
merged 13 commits into
apache:master
from
ilteriseroglu-ty:feat-proxy-rewrite-unsafe
Jul 19, 2022
Conversation
This file contains 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
ilteriseroglu-ty
force-pushed
the
feat-proxy-rewrite-unsafe
branch
from
July 6, 2022 15:35
5041b0f
to
9382f8b
Compare
Sorry for hitting the |
The failed CI test had issues accessing GitHub so I'm marking the PR as ready |
tokers
reviewed
Jul 7, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Alex Zhang <tokers@apache.org>
soulbird
reviewed
Jul 8, 2022
tzssangglass
reviewed
Jul 8, 2022
Signed-off-by: İlteriş Yağıztegin Eroğlu <ilteris.eroglu@trendyol.com>
Signed-off-by: İlteriş Yağıztegin Eroğlu <ilteris.eroglu@trendyol.com>
…_uri_unsafe Signed-off-by: İlteriş Yağıztegin Eroğlu <ilteris.eroglu@trendyol.com>
Signed-off-by: İlteriş Yağıztegin Eroğlu <ilteris.eroglu@trendyol.com>
spacewander
reviewed
Jul 10, 2022
I'm not quite sure why |
spacewander
reviewed
Jul 12, 2022
Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
spacewander
approved these changes
Jul 18, 2022
tzssangglass
approved these changes
Jul 19, 2022
soulbird
approved these changes
Jul 19, 2022
Liu-Junlin
pushed a commit
to Liu-Junlin/apisix
that referenced
this pull request
Nov 4, 2022
ilteriseroglu-ty
added a commit
to ilteriseroglu-ty/apisix
that referenced
this pull request
Dec 23, 2022
This commit fixes a bug where ctx.var.upstream_uri is not set when use_real_request_uri_unsafe is enabled. It seems that somewhere in the runtime chain (LuaJIT?) a memory jump occurs and ctx.var.upstream_uri _does_ get set even though it definitely **shouldn't**. Hence why this got unnoticed in the CI tests of apache#7401. Signed-off-by: İlteriş Yağıztegin Eroğlu <ilteris.eroglu@trendyol.com>
5 tasks
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.
Description
This PR fixes #7386.
As per the linked issue:
This PR implements an option named
use_real_request_uri_unsafe
to utilizereal_request_uri
(which is originallyrequest_uri
in nginx; its the request uri that's not normalized) and bypass all encoding calls inside.Checklist