⚠️ This issue respects the following points: ⚠️
Bug description
Metadata is lost after deleting and restoring a picture.
Steps to reproduce
- Upload a picture
- Check oc_files_metadata and see that its metadata was retrieved (ex: size, exif, etc)
- Delete the file so it goes to trash
- Check metadata in database again
- Restore file from trash
Expected behavior
At step 3 the metadata should stay in the database.
At step 5 it should be back at least.
Installation method
No response
Operating system
No response
PHP engine version
No response
Web server
No response
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
It is likely that the wrong event is used for metadata deletion.
We should use one of the "removed from cache" event to purge the metadata of a file instead of the "deleted" event.
cc @CAR
Bug description
Metadata is lost after deleting and restoring a picture.
Steps to reproduce
Expected behavior
At step 3 the metadata should stay in the database.
At step 5 it should be back at least.
Installation method
No response
Operating system
No response
PHP engine version
No response
Web server
No response
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
It is likely that the wrong event is used for metadata deletion.
We should use one of the "removed from cache" event to purge the metadata of a file instead of the "deleted" event.
cc @CAR