Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the YAML-LibYAML CPAN distribution.

Report information
The Basics
Id: 80480
Status: new
Priority: 0/
Queue: YAML-LibYAML

People
Owner: Nobody in particular
Requestors: nabanita [...] yahoo-inc.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.01
  • 0.02
  • 0.03
  • 0.04
  • 0.08
  • 0.11
  • 0.16
  • 0.17
  • 0.18
  • 0.19
  • 0.20
  • 0.21
  • 0.22
  • 0.23
  • 0.24
  • 0.25
  • 0.26
  • 0.27
  • 0.29
  • 0.30
  • 0.31
  • 0.32
  • 0.33
  • 0.34
  • 0.35
  • 0.37
  • 0.38
Fixed in: (no value)



Subject: No error for duplicate keys.
According to the yaml spec, duplicates should be treated as errors. But even in the latest version of YAML-LibYAML(0.38) there is no error for duplicate keys. example: ------- Following is the content of an .yaml file: student : - name : Tommy mobile : 04567890 age : 19 # (in years) contacts : - type : email name : tommy@yahoo.com student : - name : Fommy mobile : 13456890 age : 20 # (in years) contacts : - type : email name : fommy@outlook.com Now if the content of the above file is loaded using the function 'load', then only last section is coming. Each one is being overwritten by its successor section. So after 'load' we are getting only following: student : - name : Fommy mobile : 13456890 age : 20 # (in years) contacts : - type : email name : fommy@yahoo.com But we should get an error here because of the duplicate key ('student').