Releases page cannot be displayed when tag contains a slash
https://sentry.gitlab.net/gitlab/gitlabcom/issues/1085929/
ActionController::UrlGenerationError: No route matches {:action=>"evidence", :controller=>"projects/releases", :format=>:json, :namespace_id=>#<Group id: [redacted]>, :project_id=>#<Project id: [redacted]>, :tag=>"release/Demo-3.4.0.2"}, possible unmatched constraints: [:tag]
action_dispatch/journey/formatter.rb:57:in `generate'
raise ActionController::UrlGenerationError, message
action_dispatch/routing/route_set.rb:744:in `generate'
@set.formatter.generate(named_route, options, recall, PARAMETERIZE)
action_dispatch/routing/route_set.rb:775:in `generate'
Generator.new(route_key, options, recall, self).generate
action_dispatch/routing/route_set.rb:822:in `url_for'
path, params = generate(route_name, path_options, recall)
action_dispatch/routing/route_set.rb:273:in `call'
t._routes.url_for(hash, route_name, url_strategy)
...
(171 additional frame(s) were not displayed)
ActionController::UrlGenerationError: No route matches {:action=>"evidence", :controller=>"projects/releases", :format=>:json, :namespace_id=>#<Group id: [redacted]>, :project_id=>#<Project id: [redacted]>, :tag=>"release/Demo-3.4.0.2"}, possible unmatched constraints: [:tag]
Examples
- https://gitlab.zendesk.com/agent/tickets/140997 (internal use)
Edited by Sean Carroll