You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/19 15:05:06 UTC

[GitHub] [apisix] kevinw66 opened a new issue #6154: request help: How to match both path param and prefix?

kevinw66 opened a new issue #6154:
URL: https://github.com/apache/apisix/issues/6154


   ### Issue description
   
   I try to match the two urls like below
   `/users/${userId}/orders`
   `/users/${userId}/orders/${orderId}`
   
   And I'm using radixtree_uri_with_parameter to match url
   but when I set path to `/users/:user/orders*`, the `/users/${userId}/orders/${orderId}` didn't match
   when I set path to `/users/:user/orders/*`, the `/users/${userId}/orders` didn't match
   
   What should I do so I can use one rule to match the two url?
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #6154: request help: How to match both path param and prefix?

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #6154:
URL: https://github.com/apache/apisix/issues/6154#issuecomment-1017553513


   Path prefix matching and path parameter matching cannot be enabled at the same time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] kevinw66 closed issue #6154: request help: How to match both path param and prefix?

Posted by GitBox <gi...@apache.org>.
kevinw66 closed issue #6154:
URL: https://github.com/apache/apisix/issues/6154


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org