wklken commented on issue #9366:
URL: https://github.com/apache/apisix/issues/9366#issuecomment-1541206696

   
   after check 
[lua-resty-radixtree](https://github.com/api7/lua-resty-radixtree) and [chi 
router](https://github.com/go-chi/chi)
   
   Conclusion:
   
   1. Without any parameters and subpath, the result is independent of the 
registration order, and the longest match is used.
       - path: `/api/test/prod/test`
       - path: `/api/test/prod/`
   2. Without any parameters, but with subpath, the result is independent of 
the registration order, and the longest match is used.
       - path: `/api/test/prod/*subp`
       - path: `/api/test/prod/webconsole/*subp`
   3. With parameters and subpath, the result is dependent on the registration 
order and is not the longest match (this is not an issue with the golang 
version of radixtree).
       - path: `/api/test/prod/:v/*subp`
       - path: `/api/test/prod/:v/webconsole/*subp`
       - path: `/api/test/prod/v4/webconsole/*subp`


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