Project

General

Profile

Page 404 when issue updating

Added by Felipe Lorenz over 11 years ago

Hello everybody,

recently I've fell in an strange problem using Redmine.

I have a project (p1) with subproject (p2) and one task, under p1, between two tasks: a parent and some child.
Now I need to move the task to the project p2, but instead redmine returns a 404 page.

I thought the problem was this "complex" scenario and so I tried first to remove the parent from this task. But again the same 404 page.

Here is the log from production.log

Started PUT "/issues/2305" for xxx.xxx.xxx.xxx at Fri Dec 07 16:09:27 -0200 2012
Processing by IssuesController#update as HTML
  Parameters: {"time_entry"=>{"comments"=>"", "activity_id"=>"", "hours"=>""}, "commit"=>"Submit", "last_journal_id"=>"6658", "notes"=>"", "authenticity_token"=>"xxxxxxx", "utf8"=>"\342\234\223", "id"=>"2305", "issue"=>{"custom_field_values"=>{"11"=>"", "12"=>"", "8"=>"", "9"=>""}, "parent_issue_id"=>"", "is_private"=>"0", "project_id"=>"60", "fixed_version_id"=>"", "lock_version"=>"7", "subject"=>"Alterar tratamento de pontos a mais selecionados pelo funcionário", "assigned_to_id"=>"", "tracker_id"=>"8", "description"=>"", "status_id"=>"1"}, "attachments"=>{"1"=>{"description"=>""}}}
Completed 500 Internal Server Error in 164ms

ActiveRecord::RecordNotFound (Couldn't find Issue without an ID):
  lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:497:in `move_to'
  lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:426:in `in_tenacious_transaction'
  lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:492:in `move_to'
  lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:491:in `move_to'
  lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:356:in `move_to_right_of'
  app/models/issue.rb:1022:in `update_nested_set_attributes'
  app/models/issue.rb:873:in `save_issue_with_child_records'
  app/models/issue.rb:860:in `save_issue_with_child_records'
  app/controllers/issues_controller.rb:171:in `update'

And here is the server config:

Environment:
  Redmine version                          2.0.3.devel
  Ruby version                             1.8.7 (x86_64-linux)
  Rails version                            3.2.8
  Environment                              production
  Database adapter                         MySQL
Redmine plugins:
  no plugin installed

If you need any further information, please let me know.

Thanks,
Felipe


Replies (11)

RE: Page 404 when issue updating - Added by Ivan Cenov over 11 years ago

I tried to reproduce this behaviour with no success.

I created three tasks: grand parent, parent and child in P1. Then I moved parent in P2, that is subproject of P1. Redmine moved parent and child into P2. Then I tried to return parent back to P1. Redmine returned parent and its child too. No errors happened.

RE: Page 404 when issue updating - Added by Jiyan Fan about 11 years ago

Hi Ivan Cenov,
I found the same issue with Felipe Lorenz. I created 3 tasks(Feature) for my test project,then i updated them. But there was one of the task always occured 404 error,the other two were successed, no errors happened.

There is the log:

Started GET "/redmine/projects/a03/issues" for 127.0.0.1 at 2013-01-07 15:55:01 +0800
Processing by IssuesController#index as */*
  Parameters: {"project_id"=>"a03"}
  Current user: admin (id=1)
  Rendered queries/_filters.html.erb (9.0ms)
  Rendered queries/_columns.html.erb (2.0ms)
  Rendered issues/_list.html.erb (9.0ms)
  Rendered issues/_sidebar.html.erb (3.0ms)
  Rendered issues/index.html.erb within layouts/base (31.0ms)
  Rendered plugins/redmine_code_review/app/views/code_review/_html_header.html.erb (3.0ms)
  Rendered plugins/redmine_code_review/app/views/code_review/_body_bottom.html.erb (1.0ms)
Completed 200 OK in 232ms (Views: 118.0ms | ActiveRecord: 16.0ms)
Started GET "/redmine/issues/10" for 127.0.0.1 at 2013-01-07 15:55:04 +0800
Processing by IssuesController#show as HTML
  Parameters: {"id"=>"10"}
  Current user: admin (id=1)
  Rendered issues/_action_menu.html.erb (3.0ms)
  Rendered plugins/redmine_code_review/app/views/code_review/_issues_show_details_bottom.html.erb (1.0ms)
  Rendered issue_relations/_form.html.erb (1.0ms)
  Rendered issues/_relations.html.erb (2.0ms)
  Rendered issues/_history.html.erb (21.0ms)
  Rendered issues/show.html.erb within layouts/base (42.0ms)
Missing template, responding with 404
  Rendered common/error.html.erb within layouts/base (1.0ms)
  Rendered plugins/redmine_code_review/app/views/code_review/_html_header.html.erb (0.0ms)
  Rendered plugins/redmine_code_review/app/views/code_review/_body_bottom.html.erb (0.0ms)
Completed 404 Not Found in 286ms (Views: 10.0ms | ActiveRecord: 2.0ms)

Environment:

Redmine version                          2.2.0.stable
  Ruby version                             1.9.3 (i386-mingw32)
  Rails version                            3.2.9
  Environment                              production
  Database adapter                         Mysql2

Redmine plugins:

planner                                  0.3
  redmine_charts2                          0.2.1
  redmine_ckeditor                         0.2.1
  redmine_code_review                      0.6.1
  redmine_inline_note_images_plugin        0.0.1
  redmine_knowledgebase                    2.2.0
  redmine_monitoring_controlling           0.1.1
  redmine_xls_export                       0.2.1

RE: Page 404 when issue updating - Added by Felipe Lorenz about 11 years ago

Hi Jiyan,

I could solve this problem changing the parent task manually in the DB. I suggest you to only set null the parent task and then you will be allowed to change anything else from the Redmine.

I hope it could help you.

Cheers,
Felipe Lorenz

RE: Page 404 when issue updating - Added by Jiyan Fan about 11 years ago

Hi Felipe Lorenz,
Thanks for your Answer.
But the same 404 error appeared in my another project,and also some tasks could update succeeded,some tasks couldn't update.
The all tasks occured 404 error have no parent task,I checked the DB, the parent_id had been set NULL.

RE: Page 404 when issue updating - Added by Felipe Lorenz about 11 years ago

hummm... OK...

Reading your log again, I can see that is missing a template.

Do you have any modification/customization?

Try to download redmine again and test with a clean copy in the same DB.

Cheers,
Felipe Lorenz

RE: Page 404 when issue updating - Added by Christian Ziegelt about 11 years ago

I think I found out where the problem is coming from - but I have no clue how to solve it.

The same error occurs for me on different tickets - it does not matter whether they are in a father/son relation or simple tickets.

Only reproducable part is the "history" function - after editing the ticket I can see a "history" link in an older redmine installation. Each ticket with such a "history" produces this 404 error message for me.

Any ideas how to solve this ?

RE: Page 404 when issue updating - Added by Ivan Cenov about 11 years ago

Jiyan Fan, reading the log, I saw that you use redmine_code_review plugin. Let you try without it or see if you are running latest version of the plugin.

RE: Page 404 when issue updating - Added by Christian Ziegelt about 11 years ago

Just in case someone likes to compare plugins.

Environment:
  Redmine version                          2.2.1.devel.11182
  Ruby version                             1.9.3 (i686-linux)
  Rails version                            3.2.11
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  due_date_reminder                        0.3.2
  extended_profile                         1.1.1
  progressive_projects_list                0.1.0
  redmine_charts2                          0.2.1
  redmine_favourite_projects               0.6.2
  redmine_inline_attach_screenshot         0.4.2
  redmine_inline_note_images_plugin        0.0.1
  redmine_issue_checklist                  2.0.4
  redmine_knowledgebase                    2.2.0
  redmine_monitoring_controlling           0.1.1
  scrum2b                                  0.1
  timelog_timer                            2.0.0

RE: Page 404 when issue updating - Added by Christian Ziegelt about 11 years ago

PROBLEM SOLVED

at least for me.
In my case the "redmine_inline_note_images" plugin caused the error each time a history of changes exists.
New tickets work just fine.

Disabling the plugin instantly solves the problem.

RE: Page 404 when issue updating - Added by Jiyan Fan about 11 years ago

Hi everybody,
When I Uninstalled "redmine_inline_note_images" plugin, the error have never appeared. Then,I installed the "redmine_inline_note_images" plugin again,the 404 error appeared again.I did the same operation on others plugins that i have installed, but the 404 error never appeared. SO, I agree with Christian Ziegelt, the 404 error maybe caused by the "redmine_inline_note_images" plugin.
I hope this helps you.

Thanks and best regards,
Jiyan Fan

RE: Page 404 when issue updating - Added by Aleksandar Pavic about 9 years ago

I've encountered the same issue with this text...

You see, does not work here even... I tried to paste it and submit reply...

Here is it on pastebin...

[[http://tny.cz/04040bd1]]

    (1-11/11)