Content
Updated by Matt Rakauskas about 9 years ago
I noticed that after upgrading to 4.2.8
i cannot edit a work package type.
Since i had problems doing this in the past i updated the costs plugin to release/4.2
But the problem persist.
I receive the 500 error, this is a single run (drawn from the log file)
<pre>
Started GET “/work\_packages/74/new\_type?utf8=%E2%9C%93&\_method=put\&authenticity\_token=gPEKNP0VIJm8bUs6aJg%2FCeTru46vKAlH2tuANtVoF0c%3D\&back\_url=\&work\_package%5Btype\_id%5D=2\&work\_package%5Bparent\_id%5D=\&work\_package%5Bsubject%5D=Save%20%22Acaund%22%20in%20database\&work\_package%5Bdescription%5D=h1.%20Mail%202015-08-28%0A%0A%3Cpre%3E%0AAcaund%20skal%20gemmes%2C%20de%20oplysninger%20skal%20Han%2FHun%20kunne%20vende%20tilbage%20til.%20Gerne%20ved%20s%C3%B8gning%0Ap%C3%A5%20Tlf.%20Nr.%20og%20skak%20kunne%20udskrives.%0A%3C%2Fpre%3E\&work\_package%5Bstatus\_id%5D=1\&work\_package%5Bpriority\_id%5D=2\&work\_package%5Bassigned\_to\_id%5D=3\&work\_package%5Bresponsible\_id%5D=\&work\_package%5Bstart\_date%5D=\&work\_package%5Bdue\_date%5D=\&work\_package%5Bestimated\_hours%5D=\&work\_package%5Bdone\_ratio%5D=0\&work\_package%5Bcost\_object\_id%5D=\&work\_package%5Bjournal\_notes%5D=\&work\_package%5Btime\_entry%5D%5Bhours%5D=\&work\_package%5Btime\_entry%5D%5Bactivity\_id%5D=7\&work\_package%5Btime\_entry%5D%5Bcomments%5D=\&work\_package%5Btime\_entry%5D%5Bcustom\_field\_values%5D%5B7%5D=Open\&work\_package%5Battachments%5D%5B1%5D%5Bdescription%5D=\&send\_notification=0\&send\_notification=1\&work\_package%5Block\_version%5D=3\&button=\&authenticity\_token=gPEKNP0VIJm8bUs6aJg%2FCeTru46vKAlH2tuANtVoF0c%3D” "/work_packages/74/new_type?utf8=%E2%9C%93&_method=put&authenticity_token=gPEKNP0VIJm8bUs6aJg%2FCeTru46vKAlH2tuANtVoF0c%3D&back_url=&work_package%5Btype_id%5D=2&work_package%5Bparent_id%5D=&work_package%5Bsubject%5D=Save%20%22Acaund%22%20in%20database&work_package%5Bdescription%5D=h1.%20Mail%202015-08-28%0A%0A%3Cpre%3E%0AAcaund%20skal%20gemmes%2C%20de%20oplysninger%20skal%20Han%2FHun%20kunne%20vende%20tilbage%20til.%20Gerne%20ved%20s%C3%B8gning%0Ap%C3%A5%20Tlf.%20Nr.%20og%20skak%20kunne%20udskrives.%0A%3C%2Fpre%3E&work_package%5Bstatus_id%5D=1&work_package%5Bpriority_id%5D=2&work_package%5Bassigned_to_id%5D=3&work_package%5Bresponsible_id%5D=&work_package%5Bstart_date%5D=&work_package%5Bdue_date%5D=&work_package%5Bestimated_hours%5D=&work_package%5Bdone_ratio%5D=0&work_package%5Bcost_object_id%5D=&work_package%5Bjournal_notes%5D=&work_package%5Btime_entry%5D%5Bhours%5D=&work_package%5Btime_entry%5D%5Bactivity_id%5D=7&work_package%5Btime_entry%5D%5Bcomments%5D=&work_package%5Btime_entry%5D%5Bcustom_field_values%5D%5B7%5D=Open&work_package%5Battachments%5D%5B1%5D%5Bdescription%5D=&send_notification=0&send_notification=1&work_package%5Block_version%5D=3&button=&authenticity_token=gPEKNP0VIJm8bUs6aJg%2FCeTru46vKAlH2tuANtVoF0c%3D" for 92.251.127.197 at 2015-10-06 09:45:20 +0200
Processing by WorkPackagesController\#new\_type WorkPackagesController#new_type as JS
Parameters: {“utf8”=\>“✓”, “authenticity\_token”=\>“gPEKNP0VIJm8bUs6aJg/CeTru46vKAlH2tuANtVoF0c=”, “back\_url”=\>“”, “work\_package”=\>{“type\_id”=\>“2”, “parent\_id”=\>“”, “subject”=\>“Save \\”Acaund\\" {"utf8"=>"✓", "authenticity_token"=>"gPEKNP0VIJm8bUs6aJg/CeTru46vKAlH2tuANtVoF0c=", "back_url"=>"", "work_package"=>{"type_id"=>"2", "parent_id"=>"", "subject"=>"Save \"Acaund\" in database“, ”description“=\>”h1. database", "description"=>"h1. Mail 2015-08-28\\n\\n
\nAcaund 2015-08-28\n\n<pre>\nAcaund skal gemmes, de oplysninger skal Han/Hun kunne vende tilbage til. Gerne ved søgning\npå Tlf. Nr. og skak kunne udskrives.\n
“, ”status\_id“=\>”1“, ”priority\_id“=\>”2“, ”assigned\_to\_id“=\>”3“, ”responsible\_id“=\>”“, ”start\_date“=\>”“, ”due\_date“=\>”“, ”estimated\_hours“=\>”“, ”done\_ratio“=\>”0“, ”cost\_object\_id“=\>”“, ”journal\_notes“=\>”“, ”time\_entry“=\>{”hours“=\>”“, ”activity\_id“=\>”7“, ”comments“=\>”“, ”custom\_field\_values“=\>{”7“=\>”Open“}}, ”attachments“=\>{”1“=\>{”description“=\>”“}}, ”lock\_version“=\>”3“}, ”send\_notification“=\>”1“, ”button“=\>”“, ”id“=\>”74“}
Rendered work\_packages/\_two\_column\_attributes.html.erb (0.1ms)
Rendered work\_packages/\_attributes.html.erb (40.9ms)
Rendered work\_packages/new\_type.html.erb (41.3ms)
Completed 200 OK in 66.4ms (Views: 33.1ms | ActiveRecord: 14.8ms)
Started PUT ”/work\_packages/74" for 92.251.127.197 at 2015-10-06 09:45:22 +0200
Processing by WorkPackagesController\#update as HTML
Parameters: {“utf8”=\>“✓”, “authenticity\_token”=\>“gPEKNP0VIJm8bUs6aJg/CeTru46vKAlH2tuANtVoF0c=”, “back\_url”=\>“”, “work\_package”=\>{“type\_id”=\>“2”, “parent\_id”=\>“”, “subject”=\>“Save \\”Acaund\\" in database“, ”description“=\>”h1. Mail 2015-08-28\\r\\n\\r\\n
\r\nAcaund skal gemmes, de oplysninger skal Han/Hun kunne vende tilbage til. Gerne ved søgning\r\npå Tlf. Nr. og skak kunne udskrives.\r\n
“, ”status\_id“=\>”1“, ”priority\_id“=\>”2“, ”assigned\_to\_id“=\>”3“, ”responsible\_id“=\>”“, ”start\_date“=\>”“, ”due\_date“=\>”“, ”estimated\_hours“=\>”“, ”done\_ratio“=\>”0“, ”cost\_object\_id“=\>”“, ”journal\_notes“=\>”“, ”time\_entry“=\>{”hours“=\>”“, ”activity\_id“=\>”7“, ”comments“=\>”“, ”custom\_field\_values“=\>{”7“=\>”Open“}}, ”attachments“=\>{”1“=\>{”description“=\>”“}}, ”lock\_version“=\>”3“}, ”send\_notification“=\>”1“, ”button“=\>”“, ”id“=\>”74"}
Completed 500 Internal Server Error in 41.7ms
NoMethodError (undefined method \`clear\_attribute\_changes’ for \#<WorkPackage:0xbe4a4b88>):
lib/plugins/acts\_as\_customizable/lib/acts\_as\_customizable.rb:140:in \`method\_missing’
app/models/work\_package.rb:443:in \`update\_by\!’
app/services/update\_work\_package\_service.rb:42:in \`update’
app/controllers/work\_packages\_controller.rb:186:in \`update’
app/middleware/params\_parser\_with\_exclusion.rb:40:in \`call’
\</pre
</pre
Since i had problems doing this in the past i updated the costs plugin to release/4.2
I receive the 500 error, this is a single run (drawn from the log file)
<pre>
\nAcaund
“, ”status\_id“=\>”1“, ”priority\_id“=\>”2“, ”assigned\_to\_id“=\>”3“, ”responsible\_id“=\>”“, ”start\_date“=\>”“, ”due\_date“=\>”“, ”estimated\_hours“=\>”“, ”done\_ratio“=\>”0“, ”cost\_object\_id“=\>”“, ”journal\_notes“=\>”“, ”time\_entry“=\>{”hours“=\>”“, ”activity\_id“=\>”7“, ”comments“=\>”“, ”custom\_field\_values“=\>{”7“=\>”Open“}}, ”attachments“=\>{”1“=\>{”description“=\>”“}}, ”lock\_version“=\>”3“}, ”send\_notification“=\>”1“, ”button“=\>”“, ”id“=\>”74“}
Rendered work\_packages/\_two\_column\_attributes.html.erb (0.1ms)
Rendered work\_packages/\_attributes.html.erb (40.9ms)
Rendered work\_packages/new\_type.html.erb (41.3ms)
Completed 200 OK in 66.4ms (Views: 33.1ms | ActiveRecord: 14.8ms)
Started PUT ”/work\_packages/74" for 92.251.127.197 at 2015-10-06 09:45:22 +0200
Processing by WorkPackagesController\#update as HTML
Parameters: {“utf8”=\>“✓”, “authenticity\_token”=\>“gPEKNP0VIJm8bUs6aJg/CeTru46vKAlH2tuANtVoF0c=”, “back\_url”=\>“”, “work\_package”=\>{“type\_id”=\>“2”, “parent\_id”=\>“”, “subject”=\>“Save \\”Acaund\\" in database“, ”description“=\>”h1. Mail 2015-08-28\\r\\n\\r\\n
\r\nAcaund skal gemmes, de oplysninger skal Han/Hun kunne vende tilbage til. Gerne ved søgning\r\npå Tlf. Nr. og skak kunne udskrives.\r\n
“, ”status\_id“=\>”1“, ”priority\_id“=\>”2“, ”assigned\_to\_id“=\>”3“, ”responsible\_id“=\>”“, ”start\_date“=\>”“, ”due\_date“=\>”“, ”estimated\_hours“=\>”“, ”done\_ratio“=\>”0“, ”cost\_object\_id“=\>”“, ”journal\_notes“=\>”“, ”time\_entry“=\>{”hours“=\>”“, ”activity\_id“=\>”7“, ”comments“=\>”“, ”custom\_field\_values“=\>{”7“=\>”Open“}}, ”attachments“=\>{”1“=\>{”description“=\>”“}}, ”lock\_version“=\>”3“}, ”send\_notification“=\>”1“, ”button“=\>”“, ”id“=\>”74"}
Completed 500 Internal Server Error in 41.7ms
NoMethodError (undefined method \`clear\_attribute\_changes’ for \#<WorkPackage:0xbe4a4b88>):
lib/plugins/acts\_as\_customizable/lib/acts\_as\_customizable.rb:140:in \`method\_missing’
app/models/work\_package.rb:443:in \`update\_by\!’
app/services/update\_work\_package\_service.rb:42:in \`update’
app/controllers/work\_packages\_controller.rb:186:in \`update’
app/middleware/params\_parser\_with\_exclusion.rb:40:in \`call’
\</pre
</pre