Open dustinbyrne opened 1 year ago
E.g. given the following routes.rb:
routes.rb
get 'api/users' get ':team_slug/users'
It appears possible for a call to /api/users to return a normalized path of /:team_slug/users incorrectly when the path matches the route definition.
/api/users
/:team_slug/users
https://github.com/getappmap/appmap-ruby/blob/master/lib/appmap/handler/rails/request_handler.rb#L59-L66
This may only occur due to URL rewriting in the client application. No X-Cascade headers were being set.
X-Cascade
E.g. given the following
routes.rb
:It appears possible for a call to
/api/users
to return a normalized path of/:team_slug/users
incorrectly when the path matches the route definition.https://github.com/getappmap/appmap-ruby/blob/master/lib/appmap/handler/rails/request_handler.rb#L59-L66