This project is archived and is in readonly mode.

#6286 ✓resolved
pederbl (at jobstar)

ActiveSupport::JSON.decode breaks for strings that look like dates ruby1.9.2

Reported by pederbl (at jobstar) | January 13th, 2011 @ 11:39 AM


Stack (after disabling the invalid json exception):
/usr/local/ruby/lib/ruby/1.9.1/date.rb:810:in civil': invalid date (ArgumentError)

from /usr/local/ruby/lib/ruby/1.9.1/syck.rb:136:in `node_import'
from /usr/local/ruby/lib/ruby/1.9.1/syck.rb:136:in `load'
from /usr/local/ruby/lib/ruby/1.9.1/syck.rb:136:in `load'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/json/backends/yaml.rb:18:in `decode'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/json/decoding.rb:14:in `decode'

The error seems to be in the Parser which I haven't found yet.

Ruby Version: ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket

Referenced by