3021: Use Marshal dump/load to save @old_attributes. Otherwise, hashes
authorTom Clegg <tom@curoverse.com>
Tue, 20 Jan 2015 06:20:54 +0000 (01:20 -0500)
committerTom Clegg <tom@curoverse.com>
Tue, 20 Jan 2015 06:20:54 +0000 (01:20 -0500)
commit9707b0c9304596799d01cf5c2d1d630026a49d79
tree6f31f213387903e3c9f5fed51f987b73c1bc1454
parent47585fc714a92d26e008f2fe9a46357f5ad9070d
3021: Use Marshal dump/load to save @old_attributes. Otherwise, hashes
in @old_attributes can contain references to objects that can be
mutated by callers, which could result in the new attributes being
logged incorrectly as old_attributes.
services/api/app/models/arvados_model.rb
services/api/test/unit/log_test.rb