shreemaan-abhishek commented on issue #9366:
URL: https://github.com/apache/apisix/issues/9366#issuecomment-1875031504

   I just attempted on reproducing this issue, irrespective of the order of 
adding the routes the `short` route got matched. @wklken do you have any say on 
this?
   
   ```shell
   curl -X PUT 'http://127.0.0.1:9180/apisix/admin/routes/test.2' -H 
"X-API-KEY: ${ADMIN_API_KEY}" -d '{
       "plugins": {
          "mocking": {
             "content_type": "application/json",
             "response_status": 200,
             "response_example": "long"
          }
       },
       "uri": 
"/api/prod/:version/test/api/portal/projects/:project_id_/clusters/:cluster_id/nodes/?",
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "127.0.0.1:1980": 1
           }
       }
     }'
   
   curl -X PUT 'http://127.0.0.1:9180/apisix/admin/routes/test.1' -H 
"X-API-KEY: ${ADMIN_API_KEY}" -d '{
       "plugins": {
          "mocking": {
             "content_type": "application/json",
             "response_status": 200,
             "response_example": "short"
          }
       },
       "uris": [
         "/api/prod/:version/test",
         "/api/prod/:version/test/*subpath_match_param_name"
       ],
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "127.0.0.1:1980": 1
           }
       }
     }'
   ```
   
   


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