Content
View differences
Updated by Jonas Heinrich (Finn) over 12 years ago
**QA system** Reproduce:
- preview.openproject.org version: 5.0.pre20
- Core version: 3.0.0pre33
**Actual behavior**
- Internal error
**Expected behavior**
- 404
**Preconditions**
**Steps to reproduce**
- Go to /projects/<inexistent identifier>/work\_packages
**Solution proposition**
Result: 500
Expected: 404
From what I see, the menu handling doesn’t expect that in case of an error message not all before\_filters are necessarily executed (e.g. retrieve\_query)
Stacktrace:
app/controllers/work_packages_controller.rb:42:in `block in <class:WorkPackagesController>'
lib/redmine/menu_manager/menu_controller.rb:82:in `call'
lib/redmine/menu_manager/menu_controller.rb:82:in `current_menu_item'
lib/redmine/menu_manager/menu_helper.rb:36:in `current_menu_item'
app/views/layouts/base.html.erb:35:in `_app_views_layouts_base_html_erb__2754615824865565595_70158226433560'
app/controllers/application_controller.rb:491:in `block (2 levels) in render_error'
app/controllers/application_controller.rb:489:in `render_error'
app/controllers/application_controller.rb:449:in `render_404'
app/controllers/application_controller.rb:300:in `rescue in find_optional_project'
app/controllers/application_controller.rb:298:in `find_optional_project'
- preview.openproject.org version: 5.0.pre20
- Core version: 3.0.0pre33
**Actual behavior**
- Internal error
**Expected behavior**
- 404
**Preconditions**
**Steps to reproduce**
- Go to /projects/<inexistent identifier>/work\_packages
**Solution proposition**
Result: 500
Expected: 404
From what I see, the menu handling doesn’t expect that in case of an error message not all before\_filters are necessarily executed (e.g. retrieve\_query)
Stacktrace:
app/controllers/work_packages_controller.rb:42:in `block in <class:WorkPackagesController>'
lib/redmine/menu_manager/menu_controller.rb:82:in `call'
lib/redmine/menu_manager/menu_controller.rb:82:in `current_menu_item'
lib/redmine/menu_manager/menu_helper.rb:36:in `current_menu_item'
app/views/layouts/base.html.erb:35:in `_app_views_layouts_base_html_erb__2754615824865565595_70158226433560'
app/controllers/application_controller.rb:491:in `block (2 levels) in render_error'
app/controllers/application_controller.rb:489:in `render_error'
app/controllers/application_controller.rb:449:in `render_404'
app/controllers/application_controller.rb:300:in `rescue in find_optional_project'
app/controllers/application_controller.rb:298:in `find_optional_project'