avalonmediasystem / avalon

Avalon Media System – Samvera Application
http://www.avalonmediasystem.org/
Apache License 2.0
93 stars 51 forks source link

Delete does not cascade to child supplemental files #5871

Open masaball opened 3 weeks ago

masaball commented 3 weeks ago

Description

When a media object or master file is deleted associated supplemental files are not removed, leaving orphan files in the system. Will leave orphaned supplemental files in database and on disk/in s3 bucket.

Delete callback may not work; may need to manually add a loop through supplemental files in the delete action in the controllers.

Old orphaned supplemental files could be cleaned up in the future by looking for files that aren't linked to any media files / master files.

Done Looks Like

elynema commented 2 weeks ago

Not sure how often we are deleting things that have supplemental files, and this does not seem to be a new problem, so this is probably not a 7.8 requirement.