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/11/17 03:11:29 UTC

[GitHub] [apisix] Gary-Airwallex opened a new issue #2771: bug: admin api matches config ID by prefix

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


   ### Issue description
   Admin api appears to match config Id by prefix instead of an exact string match.
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 2.0
   * OS: osx + linux
   
   ### Minimal test code / Steps to reproduce the issue
   1. PUT a new upstream with id: abc
   2. GET upstream by id: ab
   
   ### What's the actual result? (including assertion message & call stack if applicable)
   The upstream abc is returned.
   
   
   ### What's the expected result?
    A NOT_FOUND is expected here


----------------------------------------------------------------
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] idbeta commented on issue #2771: bug: admin api matches config ID by prefix

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


   It is indeed a problem, thanks for the feedback.


----------------------------------------------------------------
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] JanLi-air commented on issue #2771: bug: admin api matches config ID by prefix

Posted by GitBox <gi...@apache.org>.
JanLi-air commented on issue #2771:
URL: https://github.com/apache/apisix/issues/2771#issuecomment-728666287


   It's very critical, should take priority to fix this.
   
   Suppose this case:
   
   1. Put a upstream with id foobar.
   2. Put a route which refers to upstream foo.
   3. Instead of reporting an error that the second step refers to a non-exist upstream, the route is put successfully with upstream foobar.


----------------------------------------------------------------
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 #2771: bug: admin api matches config ID by prefix

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


   


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