redmine_planning
redmine_planning copied to clipboard
Missing template, responding with 404
Hi!, Am trying to run planning on redmine with the following versions Environment: Redmine version 2.4.2.stable Ruby version 1.9.3-p0 (2011-10-30) [i686-linux] Rails version 3.2.16 Environment production Database adapter Mysql2 Redmine plugins: redmine_backlogs v1.0.6 redmine_code_review 0.6.3 redmine_impasse 1.2.2 redmine_planning 0.7.5.1
Every time I try to open the plan plugging by clicking on the menu I get the planning section rendered but not issues in it. If I look at firebug it comes with a 404 error message and if we look at the log on redmine this is what we get.
Started GET "/projects/root/plan/issues?utf8=%E2%9C%93&set_filter=1&f%5B%5D=status_id&op%5Bstatus_id%5D=o&f%5B%5D=tracker_id&op%5Btracker_id%5D=%3D&v%5Btracker_id%5D%5B%5D=7&f%5B%5D=" for 10.50.50.17 at 2014-06-05 00:20:47 -0400 Processing by PlanningController#issues as JSON_IMPASSE Parameters: {"utf8"=>"✓", "set_filter"=>"1", "f"=>["status_id", "tracker_id", ""], "op"=>{"status_id"=>"o", "tracker_id"=>"="}, "v"=>{"tracker_id"=>["7"]}, "project_id"=>"root"} Current user: Thor1 (id=26) [191, 218, 236, 255, 261, 182, 192, 196, 221, 233, 217] Retrieved all issues and relations in 1 iteration(s) Missing template, responding with 404 Rendered common/error.html.erb (0.1ms) Completed 404 Not Found in 63.8ms (Views: 0.5ms | ActiveRecord: 0.0ms)
I followed the installations describe on the main page.
Thanks for the help.
As your error log suggests and what I just confirmed is that redmine_impasse conflicts with redmine_planning. See the following line:
Processing by PlanningController#issues as JSON_IMPASSE
This should not happen. I will try to find out what is causing this conflict and if it can be solved. A workaround for the moment would be to uninstall the redmine_impasse plugin, but that's probably not what you want.
Update: I located the cause, the problem is the line
Mime::Type.register "application/json", :json_impasse
in redmine_impasse/init.rb
It seems to register application/json as a type that should be handled by this plugin. However, this plugin seems to force the use of a template for this type of response which redmine_planning is not using. I'll put it on my todo list. Commenting the offending line in redmine_impasse/init.rb removes the issue for me, but that probably criples redmine_impasse.