Defect #11487
Cannot Save Special Characters (Such as Japanese) in Redmine Settings Hash from a Plugin
| Status: | New | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | Plugin API | |||
| Target version: | - | |||
| Affected version: | Resolution: |
Description
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_#{@plugin.id}=", 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: 1.6.7.2 (Ruby 1.9 Mode)