Defect #606
closedsettings.yml has illegal syntax in it.
0%
Description
The native Ruby compiler does not complain, but JRuby 1.0.3 does. The settings in this file that start with a hyphen, are apparently (technically) not valid YML unless those lines are further indented with another two spaces
default: -- - issue_added - issue_updated issue_list_default_columns: serialized: true default: -- - tracker - status - priority - subject - assigned_to - updated_on
Updated by Jean-Philippe Lang almost 17 years ago
- Status changed from New to 7
- Assignee set to Jean-Philippe Lang
Applying to_yaml
on the settings gives:
notified_events: serialized: true default: - issue_added - issue_updated issue_list_default_columns: serialized: true default: - tracker - status - priority - subject - assigned_to - updated_on
This should be valid since it's produced by ruby's #to_yaml
.
So the problem in settings.yml
may comes from the 2 hypens that are after default:
Could you try with this syntax (without the 2 hypens) ?
Updated by M T almost 17 years ago
Yes that does seem to "fix" the problem, and I can see that your analysis is correct. Notwithstanding that ruby doesn't blow up on parsing it, it does appear to be illegal to have...
default: --
The relevant issue in jruby, raised by someone else trying to get redmine working under jruby is:
http://jira.codehaus.org/browse/JRUBY-1756
They have made a fix to make it jruby tolerate it like ruby, but that fix is not released yet in any stable version of jruby, so getting it fixed in settings.yml would be appreciated.
Updated by Jean-Philippe Lang almost 17 years ago
- Status changed from 7 to Closed
Fixed in r1124 (the 2 hypens are removed after default:
).