It seems the meta info about files gets not deleted properly, at least not for many type of files. At first look this is due to the fact that the MetaInfo infrastructure is a feature of the briefcase module and not the VFS. In contrast, the versions which work similar to the meta info, are part of the VFS and thus properly deleted when a folder is deleted (at least it seems so).
What ideally should work:
- When deleting a file anywhere, the meta info should be deleted as well (✓)
- when versioning is enabled, the meta of orphan files should only be deleted when the orphan is finally deleted (flush trash) (✓)
- Copying a file/directory should also copy the meta info (✓)
- Unzipping a file should at least add the correct owner to the unzipped files
In addition (but this is not necessarily part of this issue), when exporting something (specifically a course, maybe also in a ZIP?), the relevant meta info should be exported as well and during import (unzip?) the system should look if there is some attached meta info and restore it to the correct place.
Moving the meta info to the database would have some advantages as well, but this should be implemented / considered in another issue once the meta data handing of files is clean.