epitron/redmine_ultraviolet — Issue #14: fixes for redmine 1.3.0+
Author: asiyanko
Created: 2011-12-25 21:38:47+00:00
State: open

It turned out that plugin doesn't work with Redmine 1.3.0. An attempt to view a file displays internal server error and logs the following message:

ActionView::TemplateError (undefined method `to_utf8' for #) on line #15 of vendor/plugins/redmine_ultraviolet/app/views/common/_file.rhtml:
...
...

vendor/plugins/redmine_ultraviolet/app/views/common/_file.rhtml:15:in `_run_rhtml_vendor47plugins47redmine_ultraviolet47app47views47common47_file46rhtml_locals_content_file_filename_object'
app/views/repositories/entry.html.erb:11
config/initializers/mongrel.rb:77:in `dispatch_cgi'

Rendering /usr/local/redmine/1.3.0-8180/public/500.html (500 Internal Server Error)

To fix this all 'to_utf8' calls in rhtml-files under app/views directory should be changed to 'Redmine::CodesetUtil.to_utf8_by_setting'