Page MenuHomePhorge

File reference not removed when file is deleted
Open, HighPublic

Description

E.g., D25018 has a bunch of "Unknown Object" in the Refernced Files section from expired temporarily generated files. These references should be deleted when the file object is deleted.

Event Timeline

I'll try to force the GC to run, maybe this will delete them.

In T15110#2655, @avivey wrote:

I'll try to force the GC to run, maybe this will delete them.

Tried that, bad refs are still there.

Relevant old upstream comment (from an unrelated task) that describes this problem as "ghosts in the UI":

  • Destroying Files: See PHI2217. Destroying an object doesn't destroy corresponding FileAttachment objects, so you can end up with ghosts in the UI.

A bit more than Normal, since it reflects on a database with orphan elements that creates "ghosts in the UI".