Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing template, responding with 404 #16

Open
Thor1 opened this issue Jun 5, 2014 · 1 comment
Open

Missing template, responding with 404 #16

Thor1 opened this issue Jun 5, 2014 · 1 comment

Comments

@Thor1
Copy link

Thor1 commented Jun 5, 2014

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.

@EgbertW
Copy link
Owner

EgbertW commented Jun 5, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants