Project

General

Profile

Actions

Defect #606

closed

settings.yml has illegal syntax in it.

Added by M T over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
2008-02-05
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

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
Actions #1

Updated by Jean-Philippe Lang over 16 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) ?

Actions #2

Updated by M T over 16 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.

Actions #3

Updated by Jean-Philippe Lang over 16 years ago

  • Status changed from 7 to Closed

Fixed in r1124 (the 2 hypens are removed after default:).

Actions

Also available in: Atom PDF