⚠️ This issue respects the following points: ⚠️
Bug description
When a tag has been assigned to a file or folder, and that file/folder is subsequently deleted, attempting to assign the same system tag to a different file afterwards fails silently (no visible error in the UI). The tag assignment simply does not take effect.
The only workarounds found so far are:
- Restore the deleted file/folder from the trash, unassign the tag from it, and then the tag can be assigned to the new file normally, or
- Delete the tag entirely via the admin Tags settings and recreate a new tag with the same name.
This suggests a stale row is left behind in oc_systemtag_object_mapping referencing the deleted file's fileid/tagid pair, which blocks or conflicts with new assignments of the same tag.
Steps to reproduce
- Create a new tag (e.g. "Test").
- Assign the tag to a file or folder (File A).
- Delete File A (send it to trash, or permanently delete it).
- Try to assign the same tag ("Test") to a different file (File B).
- The assignment fails — the tag does not get applied to File B.
Expected behavior
Deleting a tagged file should not affect the ability to assign the same tag to other, unrelated files. The tag assignment mapping for the deleted file should either be cleaned up automatically, or at minimum not interfere with tagging other files.
Nextcloud Server version
33
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.5
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
Bug description
When a tag has been assigned to a file or folder, and that file/folder is subsequently deleted, attempting to assign the same system tag to a different file afterwards fails silently (no visible error in the UI). The tag assignment simply does not take effect.
The only workarounds found so far are:
This suggests a stale row is left behind in oc_systemtag_object_mapping referencing the deleted file's fileid/tagid pair, which blocks or conflicts with new assignments of the same tag.
Steps to reproduce
Expected behavior
Deleting a tagged file should not affect the ability to assign the same tag to other, unrelated files. The tag assignment mapping for the deleted file should either be cleaned up automatically, or at minimum not interfere with tagging other files.
Nextcloud Server version
33
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.5
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response