YAML import date conversion issue in IAM/Bucket policies
cmaxwellau opened this issue · 1 comments
cmaxwellau commented
Input
Version: '2012-10-17'
Output
'Version' => #<Date: 2012-10-17 ((2456218j,0s,0n),+0s,2299161j)>
cmaxwellau commented
Found that this was actually cuased by an unquoted year-month-day. YAML.load tries to convert/unserialize EVERYTHING! Short of monkeypatching psych; I've switched to YAML.safe_load, and added better input validation and rspec test to catch this, and check for regression. #19