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 2020/08/06 07:46:20 UTC

[GitHub] [apisix] Gary-Airwallex opened a new issue #2008: request help: Parameters in path don't work as expected

Gary-Airwallex opened a new issue #2008:
URL: https://github.com/apache/apisix/issues/2008


   ### Issue description
   Parameters in path as described here https://github.com/api7/lua-resty-radixtree/issues/37 don't seem to work as expected.
   For example I would expect request "/foo/1/bar" to be accepted by route with "uri": "/foo/:id/bar", and request "/foo/bar" rejected. It turns out both requests are matched by the route, like if the colon is functioning as the "*"
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 1.5
   * OS: osx
   


----------------------------------------------------------------
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.

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



[GitHub] [apisix] membphis commented on issue #2008: request help: Parameters in path don't work as expected

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


   I added a test case in `resty-radixtree`, it works fine with the case you provided.
   
   https://github.com/api7/lua-resty-radixtree/pull/49
   
   We will make a try in APISIX later.


----------------------------------------------------------------
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.

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



[GitHub] [apisix] membphis closed issue #2008: request help: Parameters in path don't work as expected

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


   


----------------------------------------------------------------
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.

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



[GitHub] [apisix] membphis commented on issue #2008: request help: Parameters in path don't work as expected

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


   we can update the `resty-radixtree` release new 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.

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



[GitHub] [apisix] membphis commented on issue #2008: request help: Parameters in path don't work as expected

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


   I will make a test in `resty-radixtree` for this case.


----------------------------------------------------------------
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.

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