Closed rajyan closed 1 year ago
I'm trying to create a failing test case right now.
I'm trying to create a failing test case right now.
Done. https://github.com/carrierwaveuploader/carrierwave/pull/2686
@mshibuya
Could you please cut a new release? Although we have reverted to 3.0.1 and not affected by this issue now, I believe this issue seems quite critical, because it might delete users files in remote.
You're right, just released 3.0.3.
Thank you!
Description
From 3.0.2, carrierwave started to delete files in remote when rollback happens. (which causes a 404 link)
I haven't found the root cause yet, but confirmed that it doesn't happen in 3.0.1.
Still looking for the cause in https://github.com/carrierwaveuploader/carrierwave/pull/2679
sample code
post model has a has_many association with attachment model, which mounts a uploader. when the transaction is rolled back by
find
orsave!
, file is deleted for attachment that is saved in the previous iteration.