core icon indicating copy to clipboard operation
core copied to clipboard

orphan records in oc_share table

Open JacekZ opened this issue 13 years ago • 4 comments

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

  1. Create file
  2. Share file with another user
  3. Delete shared file
  4. 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

JacekZ avatar Apr 14 '13 06:04 JacekZ

@MTGap

karlitschek avatar Apr 14 '13 09:04 karlitschek

In OC 5.0.5, the problem still persists.

JacekZ avatar Apr 22 '13 20:04 JacekZ

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.

Signum avatar Aug 19 '13 14:08 Signum

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!

jancborchardt avatar Jul 16 '14 15:07 jancborchardt