Closed druidPollux closed 10 years ago
The root cause is that I did not enforce dependency on redmine_watcher_groups plugin (https://github.com/maxrossello/redmine_watcher_groups), and I also forgot to mention in the readme. I'm trying to enforce dependency but I have some issue with plugin load order. If you don't want to wait for the patch, you can simply install the forementioned plugin and it would do the job anyways.
Thanks, the workaround suits me very well.
When creating a new order, redmine fails with a "Page not found" error. Nevertheless coming back to the "Orders" page, the newly created order is appearing in the table.
Here is the callstack reported in redmine log:
Started GET "/redmine/apps/order_mgmt" for 127.0.0.1 at 2014-01-22 10:53:46 +0100 Processing by OrdersController#index as HTML Current user: admin (id=1) Rendered plugins/redmine_app_timesheets/app/views/orders/index.html.erb within layouts/base (5.0ms) Rendered plugins/sidebar_hide/app/views/sidebar/_hideButton_partial.html.erb (1.0ms) Completed 200 OK in 22.0ms (Views: 14.0ms | ActiveRecord: 2.0ms) Started GET "/redmine/apps/order_mgmt/new?project_id=1" for 127.0.0.1 at 2014-01-22 10:54:09 +0100 Processing by OrdersController#new as HTML Parameters: {"project_id"=>"1"} Current user: admin (id=1) Rendered plugins/redmine_app_timesheets/app/views/orders/_form.html.erb (2.0ms) Rendered plugins/redmine_app_timesheets/app/views/orders/new.html.erb within layouts/base (4.0ms) Rendered plugins/sidebar_hide/app/views/sidebar/_hideButton_partial.html.erb (0.0ms) Completed 200 OK in 18.0ms (Views: 13.0ms | ActiveRecord: 2.0ms) Started POST "/redmine/apps/order_mgmt/create" for 127.0.0.1 at 2014-01-22 10:54:21 +0100 Processing by OrdersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"54siB18LOwIjqTvqE1dXAu3mfquGMAmrkRUxkB9mtgA=", "back_url"=>"http://127.0.0.1:8001/redmine/apps/order_mgmt", "work_order"=>{"name"=>"MyNewOrder", "description"=>"This is a test"}, "commit"=>"Create"} Current user: admin (id=1) Rendered mailer/_issue.text.erb (2.0ms) Rendered mailer/issue_add.text.erb within layouts/mailer (2.0ms) Rendered mailer/_issue.html.erb (0.0ms) Rendered mailer/issue_add.html.erb within layouts/mailer (1.0ms) Email delivery error: 530-5.5.1 Authentication Required. Learn more at
Redirected to http://127.0.0.1:8001/redmine/apps/order_users/5 Completed 302 Found in 873.0ms (ActiveRecord: 89.0ms) Started GET "/redmine/apps/order_users/5" for 127.0.0.1 at 2014-01-22 10:54:21 +0100 Processing by OrderUsersController#index as HTML Parameters: {"id"=>"5"} Current user: admin (id=1) Rendered plugins/redmine_app_timesheets/app/views/order_users/index.html.erb within layouts/base (6.0ms) Completed 500 Internal Server Error in 11.0ms
ActionController::RoutingError (No route matches {:controller=>"watcher_groups", :action=>"new", :object_type=>"issue", :object_id=>5}): actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:540:in'
raise_routing_error' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:536:in
rescue in generate' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:528:ingenerate' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:569:in
generate' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:594:inurl_for' actionpack (3.2.16) lib/action_dispatch/routing/url_for.rb:148:in
url_for' actionpack (3.2.16) lib/action_view/helpers/url_helper.rb:107:inurl_for' actionpack (3.2.16) lib/action_view/helpers/url_helper.rb:242:in
link_to' plugins/redmine_app_timesheets/app/views/order_users/index.html.erb:3:in_3e2b5fcfd8b09ec060c0728666bf0598' actionpack (3.2.16) lib/action_view/template.rb:145:in
block in render' activesupport (3.2.16) lib/active_support/notifications.rb:125:ininstrument' actionpack (3.2.16) lib/action_view/template.rb:143:in
render' deface (1.0.0) lib/deface/action_view_extensions.rb:41:inrender' actionpack (3.2.16) lib/action_view/renderer/template_renderer.rb:47:in
block (2 levels) in render_template' actionpack (3.2.16) lib/action_view/renderer/abstract_renderer.rb:38:inblock in instrument' activesupport (3.2.16) lib/active_support/notifications.rb:123:in
block in instrument' activesupport (3.2.16) lib/active_support/notifications/instrumenter.rb:20:ininstrument' activesupport (3.2.16) lib/active_support/notifications.rb:123:in
instrument' actionpack (3.2.16) lib/action_view/renderer/abstract_renderer.rb:38:ininstrument' actionpack (3.2.16) lib/action_view/renderer/template_renderer.rb:46:in
block in render_template' actionpack (3.2.16) lib/action_view/renderer/template_renderer.rb:54:inrender_with_layout' actionpack (3.2.16) lib/action_view/renderer/template_renderer.rb:45:in
render_template' actionpack (3.2.16) lib/action_view/renderer/template_renderer.rb:18:inrender' actionpack (3.2.16) lib/action_view/renderer/renderer.rb:36:in
render_template' actionpack (3.2.16) lib/action_view/renderer/renderer.rb:17:inrender' actionpack (3.2.16) lib/abstract_controller/rendering.rb:110:in
_render_template' actionpack (3.2.16) lib/action_controller/metal/streaming.rb:225:in_render_template' actionpack (3.2.16) lib/abstract_controller/rendering.rb:103:in
render_to_body' actionpack (3.2.16) lib/action_controller/metal/renderers.rb:28:inrender_to_body' actionpack (3.2.16) lib/action_controller/metal/compatibility.rb:50:in
render_to_body' actionpack (3.2.16) lib/abstract_controller/rendering.rb:88:inrender' actionpack (3.2.16) lib/action_controller/metal/rendering.rb:16:in
render' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:40:inblock (2 levels) in render' activesupport (3.2.16) lib/active_support/core_ext/benchmark.rb:5:in
block in ms' E:/intranet/ruby/lib/ruby/1.9.1/benchmark.rb:295:inrealtime' activesupport (3.2.16) lib/active_support/core_ext/benchmark.rb:5:in
ms' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:40:inblock in render' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:83:in
cleanup_view_runtime' activerecord (3.2.16) lib/active_record/railties/controller_runtime.rb:24:incleanup_view_runtime' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:39:in
render' actionpack (3.2.16) lib/action_controller/metal/implicit_render.rb:10:indefault_render' actionpack (3.2.16) lib/action_controller/metal/implicit_render.rb:5:in
send_action' actionpack (3.2.16) lib/abstract_controller/base.rb:167:inprocess_action' actionpack (3.2.16) lib/action_controller/metal/rendering.rb:10:in
process_action' actionpack (3.2.16) lib/abstract_controller/callbacks.rb:18:inblock in process_action' activesupport (3.2.16) lib/active_support/callbacks.rb:469:in
_run423283870process_action258643347callbacks' activesupport (3.2.16) lib/active_support/callbacks.rb:405:in__run_callback' activesupport (3.2.16) lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks' activesupport (3.2.16) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.16) lib/abstract_controller/callbacks.rb:17:in
process_action' actionpack (3.2.16) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:30:in
block in process_action' activesupport (3.2.16) lib/active_support/notifications.rb:123:inblock in instrument' activesupport (3.2.16) lib/active_support/notifications/instrumenter.rb:20:in
instrument' activesupport (3.2.16) lib/active_support/notifications.rb:123:ininstrument' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:29:in
process_action' actionpack (3.2.16) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action' activerecord (3.2.16) lib/active_record/railties/controller_runtime.rb:18:in
process_action' actionpack (3.2.16) lib/abstract_controller/base.rb:121:inprocess' actionpack (3.2.16) lib/abstract_controller/rendering.rb:45:in
process' actionpack (3.2.16) lib/action_controller/metal.rb:203:indispatch' actionpack (3.2.16) lib/action_controller/metal/rack_delegation.rb:14:in
dispatch' actionpack (3.2.16) lib/action_controller/metal.rb:246:inblock in action' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:73:in
call' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:73:indispatch' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:36:in
call' journey (1.0.4) lib/journey/router.rb:68:inblock in call' journey (1.0.4) lib/journey/router.rb:56:in
each' journey (1.0.4) lib/journey/router.rb:56:incall' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:608:in
call' rack-raw-upload (1.1.1) lib/rack/raw_upload.rb:18:incall' rack-openid (1.3.1) lib/rack/openid.rb:98:in
call' actionpack (3.2.16) lib/action_dispatch/middleware/best_standards_support.rb:17:incall' rack (1.4.5) lib/rack/etag.rb:23:in
call' rack (1.4.5) lib/rack/conditionalget.rb:25:incall' actionpack (3.2.16) lib/action_dispatch/middleware/head.rb:14:in
call' actionpack (3.2.16) lib/action_dispatch/middleware/params_parser.rb:21:incall' actionpack (3.2.16) lib/action_dispatch/middleware/flash.rb:242:in
call' rack (1.4.5) lib/rack/session/abstract/id.rb:210:incontext' rack (1.4.5) lib/rack/session/abstract/id.rb:205:in
call' actionpack (3.2.16) lib/action_dispatch/middleware/cookies.rb:341:incall' activerecord (3.2.16) lib/active_record/query_cache.rb:64:in
call' activerecord (3.2.16) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall' actionpack (3.2.16) lib/action_dispatch/middleware/callbacks.rb:28:in
block in call' activesupport (3.2.16) lib/active_support/callbacks.rb:405:in_run__879077035__call__365549525__callbacks' activesupport (3.2.16) lib/active_support/callbacks.rb:405:in
__run_callback' activesupport (3.2.16) lib/active_support/callbacks.rb:385:in_run_call_callbacks' activesupport (3.2.16) lib/active_support/callbacks.rb:81:in
run_callbacks' actionpack (3.2.16) lib/action_dispatch/middleware/callbacks.rb:27:incall' actionpack (3.2.16) lib/action_dispatch/middleware/remote_ip.rb:31:in
call' actionpack (3.2.16) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall' actionpack (3.2.16) lib/action_dispatch/middleware/show_exceptions.rb:56:in
call' railties (3.2.16) lib/rails/rack/logger.rb:32:incall_app' railties (3.2.16) lib/rails/rack/logger.rb:16:in
block in call' activesupport (3.2.16) lib/active_support/tagged_logging.rb:22:intagged' railties (3.2.16) lib/rails/rack/logger.rb:16:in
call' actionpack (3.2.16) lib/action_dispatch/middleware/request_id.rb:22:incall' rack (1.4.5) lib/rack/methodoverride.rb:21:in
call' rack (1.4.5) lib/rack/runtime.rb:17:incall' activesupport (3.2.16) lib/active_support/cache/strategy/local_cache.rb:72:in
call' rack (1.4.5) lib/rack/lock.rb:15:incall' actionpack (3.2.16) lib/action_dispatch/middleware/static.rb:63:in
call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward' rack-cache (1.2) lib/rack/cache/context.rb:245:in
fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup' rack-cache (1.2) lib/rack/cache/context.rb:66:in
call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall' railties (3.2.16) lib/rails/engine.rb:484:in
call' railties (3.2.16) lib/rails/application.rb:231:incall' railties (3.2.16) lib/rails/railtie/configurable.rb:30:in
method_missing' rack (1.4.5) lib/rack/urlmap.rb:64:inblock in call' rack (1.4.5) lib/rack/urlmap.rb:49:in
each' rack (1.4.5) lib/rack/urlmap.rb:49:incall' thin (1.3.1) lib/thin/connection.rb:80:in
block in pre_process' thin (1.3.1) lib/thin/connection.rb:78:incatch' thin (1.3.1) lib/thin/connection.rb:78:in
pre_process' thin (1.3.1) lib/thin/connection.rb:53:inprocess' thin (1.3.1) lib/thin/connection.rb:38:in
receive_data' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:inrun_machine' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:in
run' thin (1.3.1) lib/thin/backends/base.rb:61:instart' thin (1.3.1) lib/thin/server.rb:159:in
start' thin (1.3.1) lib/thin/controllers/controller.rb:86:instart' thin (1.3.1) lib/thin/runner.rb:185:in
run_command' thin (1.3.1) lib/thin/runner.rb:151:inrun!' thin (1.3.1) bin/thin:6:in
<top (required)>' bin/thin:16:inload' bin/thin:16:in