wklken commented on issue #9366: URL: https://github.com/apache/apisix/issues/9366#issuecomment-1880288208
I have reproduced via https://github.com/apache/apisix-docker.git @shreemaan-abhishek ``` git pull https://github.com/apache/apisix-docker.git cd apisix-docker vim compose/apisix_conf/master/config.yaml # router: # http: radixtree_uri_with_parameter vim docker-compose-master.yaml # image: "apache/apisix:3.2.1-centos" docker-compose -p docker-apisix -f docker-compose-master.yaml up ``` then `docker exec -it dockerapisix_apisix_1 /bin/bash` ``` curl -XDELETE 'http://127.0.0.1:9180/apisix/admin/routes/test.1' -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' curl -XDELETE 'http://127.0.0.1:9180/apisix/admin/routes/test.2' -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' curl -XPUT 'http://127.0.0.1:9180/apisix/admin/routes/test.1' -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -d '{ "name": "prod-short", "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" ], "status": 1, "methods": [ "GET" ], "timeout": { "send": 30, "read": 30, "connect": 30 }, "create_time": 1682336180, "update_time": 1682345264, "id": "test.1", "upstream": { "type": "roundrobin", "nodes": { "127.0.0.1:1980": 1 } } }' curl -XPUT 'http://127.0.0.1:9180/apisix/admin/routes/test.2' -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -d '{ "name": "prod-long", "plugins": { "mocking": { "content_type": "application/json", "response_status": 200, "response_example": "long" } }, "status": 1, "timeout": { "send": 30, "read": 30, "connect": 30 }, "methods": [ "GET" ], "uri": "/api/prod/:version/test/api/portal/projects/:project_id_/clusters/:cluster_id/nodes/?", "create_time": 1682336179, "update_time": 1682345264, "id": "test.2", "upstream": { "type": "roundrobin", "nodes": { "127.0.0.1:1980": 1 } } }' curl 'http://0.0.0.0:9080/api/prod/v4/test/api/portal/projects/saas/clusters/123/nodes/' ``` same order, hit `short`; change the order, hit the `long` -- 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]
