Project

General

Profile

problem with updating a ticket

Added by Chris West over 11 years ago

When I update a ticket, it works only, if I don't enter a text.

As soon as a text is added (comment) it fails.
I enabled debuging and got this info

  1. Logfile created on Sat Feb 23 16:25:45 +0000 2013 by logger.rb/1.2.6
    Connecting to database specified by database.yml
    Starting OpenID Fix plugin for Redmine
    OpenIdAuthentication.store is nil. Using in-memory store.
    Started PUT "/admin/project/issues/4" for 178.27.52.13 at Sat Feb 23 16:25:50 +0000 2013
    Processing by IssuesController#update as HTML
    Parameters: {"new_checklist"=>"", "utf8"=>"✓", "issue"=>{"lock_version"=>"1", "tracker_id"=>"1", "assigned_to_id"=>"7", "private_notes"=>"0", "is_private"=>"0", "description"=>"text of inspection entry runs outside of the column on report", "custom_field_values"=>{"1"=>"inspection", "2"=>"some times", "3"=>"high", "5"=>"", "6"=>"Laptop "}, "status_id"=>"1", "priority_id"=>"2", "estimated_hours"=>"", "done_ratio"=>"10", "subject"=>"column to long", "fixed_version_id"=>"1", "parent_issue_id"=>"", "start_date"=>"2013-02-16 00:00:00", "due_date"=>"", "notes"=>"test"}, "commit"=>"Submit", "attachments"=>{"1"=>{"description"=>""}}, "last_journal_id"=>"11", "id"=>"4", "time_entry"=>{"hours"=>"", "activity_id"=>"", "comments"=>""}, "authenticity_token"=>"zSfxE99UCBFP2I8rwsduc0abTs6VSCuJp2ASfnw3Pdk="}
    Current user: chris.westerfield (id=3)
    DEPRECATION WARNING: Mailer.deliver_issue_edit(*args) is deprecated. Use Mailer.issue_edit(*args).deliver instead. (called from method_missing at /usr/share/redmine/app/models/mailer.rb:437)
    Completed 500 Internal Server Error in 1744ms

NoMethodError (undefined method `recipients' for #<Mailer:0x7f2a633e7530>):
app/models/mailer.rb:427:in `initialize'
app/models/mailer.rb:440:in `method_missing'
app/models/mailer.rb:438:in `send'
app/models/mailer.rb:438:in `method_missing'
app/models/journal.rb:52:in `save'
app/models/issue.rb:1362:in `create_journal'
app/models/issue.rb:965:in `save_issue_with_child_records'
app/models/issue.rb:952:in `save_issue_with_child_records'
app/controllers/issues_controller.rb:176:in `update'

Started GET "/admin/project/projects/swp/issues" for 178.27.52.13 at Sat Feb 23 16:28:06 +0000 2013
Processing by IssuesController#index as HTML
Parameters: {"project_id"=>"swp"}
Current user: chris.westerfield (id=3)
Rendered queries/_filters.html.erb (22.4ms)
Rendered queries/_columns.html.erb (7.2ms)
Rendered issues/_list.html.erb (562.1ms)
Rendered issues/_sidebar.html.erb (12.4ms)
Rendered issues/index.html.erb within layouts/base (667.8ms)
Completed 200 OK in 1545ms (Views: 740.1ms | ActiveRecord: 465.2ms)
Started GET "/admin/project/projects/swp/issues/new" for 178.27.52.13 at Sat Feb 23 16:28:10 +0000 2013
Processing by IssuesController#new as HTML
Parameters: {"project_id"=>"swp"}
Current user: chris.westerfield (id=3)
Rendered issues/_form_custom_fields.html.erb (29.3ms)
Rendered issues/_attributes.html.erb (328.4ms)
Rendered plugins/redmine_issue_checklist/app/views/issues/_checklist_form.html.erb (3.3ms)
Rendered issues/_form.html.erb (371.2ms)
Rendered plugins/redmine_inline_attach_screenshot/app/views/attachments/_form.html.erb (15.0ms)
Rendered issues/new.html.erb within layouts/base (404.4ms)
Completed 200 OK in 680ms (Views: 437.9ms | ActiveRecord: 206.1ms)
Started POST "/admin/project/projects/swp/issues" for 178.27.52.13 at Sat Feb 23 16:28:23 +0000 2013
Processing by IssuesController#create as HTML
  1. Logfile created on Sat Feb 23 16:25:45 +0000 2013 by logger.rb/1.2.6
    Connecting to database specified by database.yml
    Starting OpenID Fix plugin for Redmine
    OpenIdAuthentication.store is nil. Using in-memory store.
    Started PUT "/admin/project/issues/4" for 178.27.52.13 at Sat Feb 23 16:25:50 +0000 2013
    Processing by IssuesController#update as HTML
    Parameters: {"new_checklist"=>"", "utf8"=>"✓", "issue"=>{"lock_version"=>"1", "tracker_id"=>"1", "assigned_to_id"=>"7", "private_notes"=>"0", "is_private"=>"0", "description"=>"text of inspection entry runs outside of the column on report", "custom_field_values"=>{"1"=>"inspection", "2"=>"some times", "3"=>"high", "5"=>"", "6"=>"Laptop "}, "status_id"=>"1", "priority_id"=>"2", "estimated_hours"=>"", "done_ratio"=>"10", "subject"=>"column to long", "fixed_version_id"=>"1", "parent_issue_id"=>"", "start_date"=>"2013-02-16 00:00:00", "due_date"=>"", "notes"=>"test"}, "commit"=>"Submit", "attachments"=>{"1"=>{"description"=>""}}, "last_journal_id"=>"11", "id"=>"4", "time_entry"=>{"hours"=>"", "activity_id"=>"", "comments"=>""}, "authenticity_token"=>"zSfxE99UCBFP2I8rwsduc0abTs6VSCuJp2ASfnw3Pdk="}
    Current user: chris.westerfield (id=3)
    DEPRECATION WARNING: Mailer.deliver_issue_edit(*args) is deprecated. Use Mailer.issue_edit(*args).deliver instead. (called from method_missing at /usr/share/redmine/app/models/mailer.rb:437)
    Completed 500 Internal Server Error in 1744ms

NoMethodError (undefined method `recipients' for #<Mailer:0x7f2a633e7530>):
app/models/mailer.rb:427:in `initialize'
app/models/mailer.rb:440:in `method_missing'
app/models/mailer.rb:438:in `send'
app/models/mailer.rb:438:in `method_missing'
app/models/journal.rb:52:in `save'
app/models/issue.rb:1362:in `create_journal'
app/models/issue.rb:965:in `save_issue_with_child_records'
app/models/issue.rb:952:in `save_issue_with_child_records'
app/controllers/issues_controller.rb:176:in `update'

Started GET "/admin/project/projects/swp/issues" for 178.27.52.13 at Sat Feb 23 16:28:06 +0000 2013
Processing by IssuesController#index as HTML
Parameters: {"project_id"=>"swp"}
Current user: chris.westerfield (id=3)
Rendered queries/_filters.html.erb (22.4ms)
Rendered queries/_columns.html.erb (7.2ms)
Rendered issues/_list.html.erb (562.1ms)
Rendered issues/_sidebar.html.erb (12.4ms)
Rendered issues/index.html.erb within layouts/base (667.8ms)
Completed 200 OK in 1545ms (Views: 740.1ms | ActiveRecord: 465.2ms)
Started GET "/admin/project/projects/swp/issues/new" for 178.27.52.13 at Sat Feb 23 16:28:10 +0000 2013
Processing by IssuesController#new as HTML
Parameters: {"project_id"=>"swp"}
Current user: chris.westerfield (id=3)
Rendered issues/_form_custom_fields.html.erb (29.3ms)
Rendered issues/_attributes.html.erb (328.4ms)
Rendered plugins/redmine_issue_checklist/app/views/issues/_checklist_form.html.erb (3.3ms)
Rendered issues/_form.html.erb (371.2ms)
Rendered plugins/redmine_inline_attach_screenshot/app/views/attachments/_form.html.erb (15.0ms)
Rendered issues/new.html.erb within layouts/base (404.4ms)
Completed 200 OK in 680ms (Views: 437.9ms | ActiveRecord: 206.1ms)
Started POST "/admin/project/projects/swp/issues" for 178.27.52.13 at Sat Feb 23 16:28:23 +0000 2013
Processing by IssuesController#create as HTML

I didn't modify any thing.
I also didn't active vate email sending as it isn't needed.

I'm really iritated


Replies (2)

RE: problem with updating a ticket - Added by Jan Niggemann (redmine.org team member) over 11 years ago

Redmine version?
Ruby version?
Rails version?
Operating system?

Do you use the 'Issue checklist' plugin - and if so, does it work without it?

RE: problem with updating a ticket - Added by Chris West over 11 years ago

I fixed it meanwhile.

Redmine version                          2.2.3.stable
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.12
Environment production
Database adapter MySQL
Redmine plugins:
openid_fix 0.1.0
redmine_close_button 0.0.8
redmine_collapse_quotes 0.0.1
redmine_digest 0.2.0
redmine_gantt_with_date 0.0.1
redmine_inline_attach_screenshot 0.4.2
redmine_issue_checklist 2.0.5
redmine_meetings 0.2.3
redmine_people 0.1.6
redmine_plg_db 0.1.0
redmine_release_notes 1.2.0
redmine_spent_time 2.4.0

OS Ubuntu

Problem was, I tried to test a new plugin called redmine-helpdesk.
It tried to work with emais. This isn't set up till now, so it tried to send mails and that failed the update some how.
But now it works ^^

    (1-2/2)