rackspace/ruby-cloudfiles — Issue #53: set_metadata doesn't update the object in memory
Author: svileng
Created: 2011-11-12 23:23:32+00:00
State: open

Have a look at the following example:

pry(#)> obj.metadata
=> {}
pry(#)> obj.set_metadata({"something" => "blabla"})
=> true
pry(#)> obj.metadata
=> {}

However, the metadata was indeed updated successfully, but I have to get the object from the container again:

pry(#)> obj = cont.object(cont.objects[0])
=> foobar.pdf
pry(#)> obj.metadata
=> {"something"=>"blabla"}

Is this a bug or it is an expected behaviour?