Defect #11487

Cannot Save Special Characters (Such as Japanese) in Redmine Settings Hash from a Plugin

Added by Daniel Morgan over 9 years ago. Updated about 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:Plugin API
Target version:-
Resolution:Wont fix Affected version:


I am having problems saving special characters in the Redmine Settings hash variable from a plugin.
The offending line resides in settings_controller.rb:

Setting.send "plugin_#{}=", params[:settings]

with the following error:

Psych::SyntaxError (special characters are not allowed):
  app/models/setting.rb:95:in `value'
  app/models/setting.rb:115:in `[]='
  app/models/setting.rb:145:in `plugin_redmine_xxx='
  app/controllers/settings_controller.rb:58:in `plugin'

I do not get any errors saving special characters in the Redmine Welcome Message which is also saved in the Redmine Settings hash variable.

My environment is as follows:
  • Windows Server 2008
  • Redmine: 2.0.2
  • Java JDK: 1.6.0_31
  • MySQL Community Edition: 5.5.23
  • Torquebox: 2.0.3
    • JBoss AS: 7.1.1.Final
    • JRuby: (Ruby 1.9 Mode)


#1 Updated by Marius BALTEANU about 3 years ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

Jruby is no longer supported starting with Redmine 3.0.0.

Also available in: Atom PDF