You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1563 introduced a bug where the wrong route is selected if there's an any route for a folder e.g. /users/* and a requested path has the folder as a prefix e.g. /users_prefix/.
Having the following two any routes registered: /* /users/*
Expected behaviour
GET /users => /*
GET /users/ => /users/*
GET /users_prefix => /*
GET /users_prefix/ => /*
Actual behaviour
GET /users => /*
GET /users/ => /users/*
GET /users_prefix => /*
GET /users_prefix/ => /users/* which is wrong
* Add tests for issue #1739
* Handle special trailing slash case only for a matching prefix
Only handle the special trailing slash case if the whole prefix matches to avoid matching
a wrong route for overlapping prefixes, e.g. /users/* for the path /users_prefix/ where
the route is only a partial prefix of the requested path.
Issue Description
#1563 introduced a bug where the wrong route is selected if there's an any route for a folder e.g.
/users/*
and a requested path has the folder as a prefix e.g./users_prefix/
.Having the following two any routes registered:
/*
/users/*
Expected behaviour
GET
/users
=>/*
GET
/users/
=>/users/*
GET
/users_prefix
=>/*
GET
/users_prefix/
=>/*
Actual behaviour
GET
/users
=>/*
GET
/users/
=>/users/*
GET
/users_prefix
=>/*
GET
/users_prefix/
=>/users/*
which is wrongVersion/commit
6119aec
The text was updated successfully, but these errors were encountered: