Horus-K opened a new issue #6513:
URL: https://github.com/apache/apisix/issues/6513


   ### Issue description
   
   I can't match case sensitive parameters in two routes, it seems that apisix 
will think the two routes are the same
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 1.11.0
   - OS (cmd: `uname -a`):  centos7
   - 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): 3.5
   - 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`):
   
   
   ### Steps to reproduce
   
   Create two routes, only the parameter appid is different
   {
       "uris": [
         "/micro/app/read",
         "/micro/app/read/*"
       ],
       "name": "read2",
       "vars": [
         [
           "arg_corpid",
           "IN",
           [
             "wwef5a06cd2931632c"
           ]
         ],
         [
           "arg_appid",
           "==",
           "1411"
         ]
       ],
       "plugins": {
         "redirect": {
           "ret_code": 307,
           "uri": "https://xxxxxx";
         }
       },
       "status": 1
     }
   {
       "uris": [
         "/micro/app/read",
         "/micro/app/read/*"
       ],
       "name": "read1",
       "vars": [
         [
           "arg_corpid",
           "IN",
           [
             "wwef5a06cd2931632c"
           ]
         ],
         [
           "arg_appId",
           "==",
           "1411"
         ]
       ],
       "plugins": {
         "redirect": {
           "ret_code": 302,
           "uri": "https://xxxxxxxx";
         }
       },
       "status": 1
     }
   
   ### Actual result
   
   Only one route takes effect, or the route with higher priority takes effect
   
   ### Error log
   
   NO
   
   ### Expected result
   
   Both appid and appID routes can take effect


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to