redmine version 2.2.0 (ubuntu server 12 lts, ruby 1.8.7, mysql 5.1.66
Step
create issue with image = 0k
reopen that issue and add update = error clicking on SAVE
this is related (?) excerpt of log:
Started GET "/issues/6" for 192.168.193.1 at Mon Jan 07 09:53:11 +0000 2013
Processing by IssuesController#show as HTML
Parameters: {"id"=>"6"}
Current user: admin (id=1)
Rendered issues/_action_menu.html.erb (3.4ms)
Rendered attachments/_links.html.erb (6.6ms)
Rendered issue_relations/_form.html.erb (1.2ms)
Rendered issues/_relations.html.erb (2.3ms)
Rendered plugins/redmine_inline_note_images_plugin/app/views/hooks/inline_image_hook/_inline_imag
es_paste.erb (125.7ms)
Rendered issues/_history.html.erb (131.6ms)
Rendered issues/show.html.erb within layouts/base (156.9ms)
Completed 500 Internal Server Error in 203ms
redmine version 2.2.0 (ubuntu server 12 lts, ruby 1.8.7, mysql 5.1.66
Step create issue with image = 0k reopen that issue and add update = error clicking on SAVE
this is related (?) excerpt of log: Started GET "/issues/6" for 192.168.193.1 at Mon Jan 07 09:53:11 +0000 2013 Processing by IssuesController#show as HTML Parameters: {"id"=>"6"} Current user: admin (id=1) Rendered issues/_action_menu.html.erb (3.4ms) Rendered attachments/_links.html.erb (6.6ms) Rendered issue_relations/_form.html.erb (1.2ms) Rendered issues/_relations.html.erb (2.3ms) Rendered plugins/redmine_inline_note_images_plugin/app/views/hooks/inline_image_hook/_inline_imag es_paste.erb (125.7ms) Rendered issues/_history.html.erb (131.6ms) Rendered issues/show.html.erb within layouts/base (156.9ms) Completed 500 Internal Server Error in 203ms
ActionView::Template::Error (compile error /var/www/redmine/plugins/redmine_inline_note_images_plugin/app/views/hooks/inline_image_hook/_inlin e_images_paste.erb:2: syntax error, unexpected ':', expecting ')' '); journal.details.where(property: 'attachment').each do |a| ^ /var/www/redmine/plugins/redmine_inline_note_images_plugin/app/views/hooks/inline_image_hook/_inline_images_paste.erb:2: syntax error, unexpected ')', expecting kEND '); journal.details.where(property: 'attachment').each do |a| ^): 1:
send' lib/redmine/hook.rb:111:in
view_issues_history_journal_bottom' lib/redmine/hook.rb:61:insend' lib/redmine/hook.rb:61:in
call_hook' lib/redmine/hook.rb:61:ineach' lib/redmine/hook.rb:61:in
call_hook' lib/redmine/hook.rb:58:intap' lib/redmine/hook.rb:58:in
call_hook' lib/redmine/hook.rb:158:incall_hook' app/views/issues/_history.html.erb:19:in
_app_views_issueshistory_html_erb613496489_111121650' app/views/issues/_history.html.erb:2:ineach' app/views/issues/_history.html.erb:2:in
_app_views_issueshistory_html_erb613496489_111121650' app/views/issues/show.html.erb:124:in_app_views_issues_show_html_erb__597076495_110065480' app/controllers/issues_controller.rb:119:in
show' app/controllers/issues_controller.rb:116:in `show'regards
Can reproduce this
I wrote a possible patch: https://gist.github.com/4476690
Its because of the new syntax in 1.9 and usage of ruby 1.8
fixed. Thanks
tbh you did not apply the patch to repo, is that for a reason?