markevans/dragonfly — Issue #167: S3 Data Store raising Excon::Errors::Conflict on attempted delete
Author: n0nick
Created: 2012-01-30 13:48:58+00:00
State: open

When trying to save a new file as an attachment, I see `save` calls `destroy_previous` which results in an exception:
`Excon::Errors::Conflict: Expected(204) <=> Actual(409 Conflict)`
The error message is "The bucket you tried to delete is not empty".

I see this type of exception is not rescued on [`s3data_store.rb`](https://github.com/markevans/dragonfly/blob/master/lib/dragonfly/data_storage/s3data_store.rb#L71).

I'm not sure why it tries to delete the bucket instead of just a file.