cds-videos icon indicating copy to clipboard operation
cds-videos copied to clipboard

deposit: delete file not propagated to the record

Open egabancho opened this issue 7 years ago • 3 comments

If a file is deleted in a published video, the deletion is not propagated to the record upon publishing.

egabancho avatar Dec 13 '17 16:12 egabancho

duplicate of #1460

ludmilamarian avatar Feb 07 '18 05:02 ludmilamarian

I don't think it's a duplicate, there is no error on the console when deleting the file but when publishing this action is not propagated correctly to the record.

With @ntarocco we looked into it and we think the problem it's the function from ObjectVersion that it's called remove vs delete. One deletes completely the ObjectVersion and the other one adds a new version marked as deleted. In the first case when merging the bucket with the record one we can't decide what to do with the ObjectVersion because there is no history and the truth is on the record part. (I don't if anyone can understand what I just said)

egabancho avatar Feb 08 '18 14:02 egabancho

yes, I was too fast to dismiss this as duplicate, as the description of the tickets was similar.

ludmilamarian avatar Feb 08 '18 14:02 ludmilamarian