Skip to content

CE-EE parity for routes

Robert Speicher requested to merge rs-ee-only-routes into master

This normalizes all route definitions between CE and EE. As a result, several EE-only routes are included in CE. In order to handle requests to these routes as a 404 rather than a 500, this MR introduces an EeOnlyRoute middleware which captures an ActionController::RoutingError and, if the original cause is a NameError ending in Controller, we return a 404 response.

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6654

EE counterpart: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14304

Edited by Robert Speicher

Merge request reports