Actions
Feature #12898
closedHandle GET /issues/context_menu parameters nicely to prevent returning error 500 to crawlers
Feature #12898:
Handle GET /issues/context_menu parameters nicely to prevent returning error 500 to crawlers
Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Resolution:
Fixed
Description
When I navigate to the URL /issues/context_menu in my browser, I get an error 500.
The airbrake notification I get points to line 36 in file app/views/context_menus/issues.html.erb:
ERROR MESSAGE: NoMethodError: undefined method `include?' for nil:NilClass WHERE: context_menus#issues [PROJECT_ROOT]/app/views/context_menus/issues.html.erb:36 [PROJECT_ROOT]/app/controllers/context_menus_controller.rb:71 URL: http://<my-domain>/redmine/issues/context_menu BACKTRACE: [PROJECT_ROOT]/app/views/context_menus/issues.html.erb:36 [GEM_ROOT]/gems/actionpack-3.2.11/lib/action_view/template.rb:145 [GEM_ROOT]/gems/actionpack-3.2.11/lib/action_view/template.rb:145 ...
I do not know in which circumstances this URL is used, but as this error is reproducible by retrieving the URL directly, it might be worth a fix.
My configuration:
Actions