edavis10/redmine_maintenance_mode — Issue #1: Maintenance message with Cyrillic letters fails
Author: jwalkerbg
Created: 2011-11-08 09:08:38+00:00
State: open

Hi,

If the maintenance message at line 9 contains Cyrillic letters, Redmine fails to load. Here is the log:

D:\biz\apps\redmine_trunk>ruby script\server -e production
=> Booting WEBrick
=> Rails 2.3.14 application starting on http://0.0.0.0:3000
D:/biz/apps/redmine_trunk/vendor/plugins/redmine_maintenance_mode/init.rb:9:in `evaluate_init_rb': compile error (Syntax
Error)
D:/biz/apps/redmine_trunk/vendor/plugins/redmine_maintenance_mode/init.rb:9: unterminated string meets end of file
D:/biz/apps/redmine_trunk/vendor/plugins/redmine_maintenance_mode/init.rb:9: syntax error, unexpected $end, expecting kE
ND
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin.rb:158:in `evaluate_init_rb'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/kernel/report
ing.rb:11:in `silence_warnings'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin.rb:154:in `evaluate_init_rb'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin.rb:48:in `load'
from D:/biz/apps/redmine_trunk/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in `load'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin/loader.rb:38:in `load_plugins'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin/loader.rb:37:in `each'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/plugin/loader.rb:37:in `load_plugins'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:369:in `load_plugins'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:165:in `process'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `send'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `run'
from D:/biz/apps/redmine_trunk/config/environment.rb:24
from d:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from d:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in
`require'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in
`new_constants_in'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in
`require'
from d:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/commands/server.rb:84
from d:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from d:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script/server:3

Didn't try in Chilliproject, I suppose that the behavior will be same.

Ivan