maxrossello / redmine_app_timesheets

A true timesheet plugin using orders, not bound to timelogs over issues
GNU General Public License v2.0
32 stars 10 forks source link

"Page not found" encountered when creating a new order #5

Closed druidPollux closed 10 years ago

druidPollux commented 10 years ago

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:inrescue in generate' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:528:in generate' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:569:ingenerate' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:594:in url_for' actionpack (3.2.16) lib/action_dispatch/routing/url_for.rb:148:inurl_for' actionpack (3.2.16) lib/action_view/helpers/url_helper.rb:107:in url_for' actionpack (3.2.16) lib/action_view/helpers/url_helper.rb:242:inlink_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:inblock in render' activesupport (3.2.16) lib/active_support/notifications.rb:125:in instrument' actionpack (3.2.16) lib/action_view/template.rb:143:inrender' deface (1.0.0) lib/deface/action_view_extensions.rb:41:in render' actionpack (3.2.16) lib/action_view/renderer/template_renderer.rb:47:inblock (2 levels) in render_template' actionpack (3.2.16) lib/action_view/renderer/abstract_renderer.rb:38:in block in instrument' 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_view/renderer/abstract_renderer.rb:38:in instrument' actionpack (3.2.16) lib/action_view/renderer/template_renderer.rb:46:inblock in render_template' actionpack (3.2.16) lib/action_view/renderer/template_renderer.rb:54:in render_with_layout' actionpack (3.2.16) lib/action_view/renderer/template_renderer.rb:45:inrender_template' actionpack (3.2.16) lib/action_view/renderer/template_renderer.rb:18:in render' actionpack (3.2.16) lib/action_view/renderer/renderer.rb:36:inrender_template' actionpack (3.2.16) lib/action_view/renderer/renderer.rb:17:in render' 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:inrender_to_body' actionpack (3.2.16) lib/action_controller/metal/renderers.rb:28:in render_to_body' actionpack (3.2.16) lib/action_controller/metal/compatibility.rb:50:inrender_to_body' actionpack (3.2.16) lib/abstract_controller/rendering.rb:88:in render' actionpack (3.2.16) lib/action_controller/metal/rendering.rb:16:inrender' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:40:in block (2 levels) in render' activesupport (3.2.16) lib/active_support/core_ext/benchmark.rb:5:inblock in ms' E:/intranet/ruby/lib/ruby/1.9.1/benchmark.rb:295:in realtime' activesupport (3.2.16) lib/active_support/core_ext/benchmark.rb:5:inms' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:40:in block in render' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:83:incleanup_view_runtime' activerecord (3.2.16) lib/active_record/railties/controller_runtime.rb:24:in cleanup_view_runtime' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:39:inrender' actionpack (3.2.16) lib/action_controller/metal/implicit_render.rb:10:in default_render' actionpack (3.2.16) lib/action_controller/metal/implicit_render.rb:5:insend_action' actionpack (3.2.16) lib/abstract_controller/base.rb:167:in process_action' actionpack (3.2.16) lib/action_controller/metal/rendering.rb:10:inprocess_action' actionpack (3.2.16) lib/abstract_controller/callbacks.rb:18:in block 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:in run_callbacks' actionpack (3.2.16) lib/abstract_controller/callbacks.rb:17:inprocess_action' actionpack (3.2.16) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action' 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_controller/metal/instrumentation.rb:29:inprocess_action' actionpack (3.2.16) lib/action_controller/metal/params_wrapper.rb:207:in process_action' activerecord (3.2.16) lib/active_record/railties/controller_runtime.rb:18:inprocess_action' actionpack (3.2.16) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.16) lib/abstract_controller/rendering.rb:45:inprocess' actionpack (3.2.16) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.16) lib/action_controller/metal/rack_delegation.rb:14:indispatch' actionpack (3.2.16) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:73:incall' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:73:in dispatch' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:36:incall' journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach' journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:608:incall' rack-raw-upload (1.1.1) lib/rack/raw_upload.rb:18:in call' rack-openid (1.3.1) lib/rack/openid.rb:98:incall' actionpack (3.2.16) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.5) lib/rack/etag.rb:23:incall' rack (1.4.5) lib/rack/conditionalget.rb:25:in call' actionpack (3.2.16) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.16) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.16) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.5) lib/rack/session/abstract/id.rb:210:in context' rack (1.4.5) lib/rack/session/abstract/id.rb:205:incall' actionpack (3.2.16) lib/action_dispatch/middleware/cookies.rb:341:in call' activerecord (3.2.16) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.16) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call' actionpack (3.2.16) lib/action_dispatch/middleware/callbacks.rb:28:inblock 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:inrun_callbacks' actionpack (3.2.16) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (3.2.16) lib/action_dispatch/middleware/remote_ip.rb:31:incall' actionpack (3.2.16) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.16) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' railties (3.2.16) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.16) lib/rails/rack/logger.rb:16:inblock in call' activesupport (3.2.16) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.16) lib/rails/rack/logger.rb:16:incall' actionpack (3.2.16) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall' rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.16) lib/active_support/cache/strategy/local_cache.rb:72:incall' rack (1.4.5) lib/rack/lock.rb:15:in call' actionpack (3.2.16) lib/action_dispatch/middleware/static.rb:63:incall' rack-cache (1.2) lib/rack/cache/context.rb:136:in forward' rack-cache (1.2) lib/rack/cache/context.rb:245:infetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:incall!' rack-cache (1.2) lib/rack/cache/context.rb:51:in call' railties (3.2.16) lib/rails/engine.rb:484:incall' railties (3.2.16) lib/rails/application.rb:231:in call' railties (3.2.16) lib/rails/railtie/configurable.rb:30:inmethod_missing' rack (1.4.5) lib/rack/urlmap.rb:64:in block in call' rack (1.4.5) lib/rack/urlmap.rb:49:ineach' rack (1.4.5) lib/rack/urlmap.rb:49:in call' thin (1.3.1) lib/thin/connection.rb:80:inblock in pre_process' thin (1.3.1) lib/thin/connection.rb:78:in catch' thin (1.3.1) lib/thin/connection.rb:78:inpre_process' thin (1.3.1) lib/thin/connection.rb:53:in process' thin (1.3.1) lib/thin/connection.rb:38:inreceive_data' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:in run_machine' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:inrun' thin (1.3.1) lib/thin/backends/base.rb:61:in start' thin (1.3.1) lib/thin/server.rb:159:instart' thin (1.3.1) lib/thin/controllers/controller.rb:86:in start' thin (1.3.1) lib/thin/runner.rb:185:inrun_command' thin (1.3.1) lib/thin/runner.rb:151:in run!' thin (1.3.1) bin/thin:6:in<top (required)>' bin/thin:16:in load' bin/thin:16:in

'

maxrossello commented 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.

druidPollux commented 10 years ago

Thanks, the workaround suits me very well.