orphan records in oc_share table
Expected behaviour
After removing shared file, it should be deleted appropriate (referred to removed file) record in "oc_share" table.
Actual behaviour
After removing shared file, there is orphan record in "oc_share" table refers to not existing "fileid' value in "item_source" column.
Steps to reproduce
- Create file
- Share file with another user
- Delete shared file
- Check your "oc_share" table
Server configuration
Operating system: Rhel 6.4
Web server: Apache 2.2.15
Database: mysql 5.5.30
PHP version: 5.5.3 ownCloud version: 5.0.4
Client configuration
Browser: Firefox 20.0.1
Operating system: Windows Vista
Logs
Web server error log
[14/Apr/2013:08:32:45 +0200] "POST /index.php/apps/files/ajax/delete.php HTTP/1.1" 200 153
ownCloud log (data/owncloud.log)
Nothing interesting
Browser log
Nothing interesting
@MTGap
In OC 5.0.5, the problem still persists.
Version 5.0.10 still has this bug. Users see an increasing number of shared folders that do not exist any more. We tried to remove those broken entries from the oc_shared table but apparently deleted too much. So we need a real fix for this problem.
I’m closing this issue because it has been inactive for a few months. This probably means that the issue is not reproducible or it has been fixed in a newer version.
Please open a new issue if you still encounter this problem with the latest stable version and then please use the issue template. You can also contribute directly by providing a patch – see the developer manual. :)
Thank you!