Development

#3016 (# not escaped in data dump)

You must first sign up to be able to contribute.

Ticket #3016 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

# not escaped in data dump

Reported by: pihentagy Assigned to: fabien
Priority: major Milestone: 1.1.0
Component: tasks Version: 1.0.11
Keywords: escaping yml Cc:
Qualification: Unreviewed

Description

I have a database with a varchar name field. The value stored in is #manage_intro It is exported this way:

  Systemcmspage_2: 
    name: #manage_intro

But hey, # is comment sign in yaml, so guess what happens, when you load this...

Change History

(in reply to: ↑ description ) 02/28/08 10:50:29 changed by pihentagy

exporting with using symfony propel-dump my-app-name file.yml

03/14/08 21:58:09 changed by fabien

  • milestone set to 1.1.0.

03/14/08 22:59:38 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [7892]) replaced Spyc with a new YAML parser/dumper (closes #3083, #2887, #2622, #2514, #1966, #1339, #3016)

  • removed Spyc
  • added sfYamlParser, sfYamlDumper (should be totally BC thanks to the unit tests)
  • the parser and the dumper are much more robust and much more easier to fix
  • exceptions are thrown when a non valid YAML file is parsed (when you forget a : after a key for example, or if the indentation is not right ;))
  • fixed a bunch of bugs of the old parser
  • speed is more or less the same as Spyc
  • added an option to control the dump to switch from the block to the flow notation (propel:build-schema is now much more readable in YAML)
  • added more unit tests