Menu

#2 YAML parsing deadlocks when schema ends in comment

open
nobody
None
5
2008-03-16
2008-03-16
Anonymous
No

Hi,

I don't know if this is a misunderstanding about YAML's syntax subleties on my side, but in either case I think the following schema/file pair shouldn't deadlock :)

-- schema.yml --
type: map
mapping:
"id":
type: str
# This file ends on this line, no newline following this comment!

-- file.yml --
id: foo

The deadlock goes away by either removing the comment, or by putting a line break at its end.

- Julian (julian@raschke.de)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB