spree/spree — Issue #1008: intermittent errors in product creation with Ruby 1.8.7p357
Author: rounders
Created: 2012-01-22 01:12:29+00:00
State: open

i created a simple product creation test which you can see at https://gist.github.com/1654849

- on Ruby 1.8.7p352 it succeeds consistently.
- on Ruby 1.8.7p357 it sometimes succeeds and sometimes fails.
- on ruby enterprise edition 11.03 it sometimes fails and sometimes succeeds though the failure rate appears less than on 1.8.7-p357

I haven't figured out the cause but my best guess is that there is probably some piece of code that unintentionally relies on the order of hash attributes as appears to be the case with issue #981.

I would recommend that people avoid upgrading to 1.8.7p357.

I originally discovered this issue on spree 0.50.x but I also tested it on edge with the same results so i imagine it exists as well on all versions in between.