-
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
change: don't treat route segment with ':' as parameter by default #3154
Conversation
2fe0dcb
to
a140eae
Compare
Another related issue: #2008 |
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.
In this case, how about creating a new router?
eg: radixtree_uri
, radixtree_uri_no_parameter
This configuration is not easy to understand and find.
conf/config-default.yaml
Outdated
@@ -119,6 +119,8 @@ apisix: | |||
# control: | |||
# ip: "127.0.0.1" | |||
# port: 9090 | |||
feature: | |||
enable_parameter_in_route: false # allow using ':param' in the router. See https://github.com/api7/lua-resty-radixtree/#parameters-in-path |
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.
We need to find a better way
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.
@membphis
rewritten.
We decide to use |
Fix apache#3134. You can still get the original behavior by using radixtree_uri_with_parameter router. Signed-off-by: spacewander <spacewanderlzx@gmail.com>
a140eae
to
adf3ff8
Compare
need to add some comment here: https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L89-L91 |
@membphis |
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
many thx, merged |
Fix #3134.
Signed-off-by: spacewander spacewanderlzx@gmail.com
What this PR does / why we need it:
Pre-submission checklist: