Skip to content

Share still exists after source file gets deleted #7238

@Emi94

Description

@Emi94

Steps to reproduce

  1. Share a file with a user
  2. Delete the shared file

Expected behaviour

Share should be deleted from DB

Actual behaviour

Share still exists in DB table oc_share

Server configuration

Operating system:Ubuntu 16.04
Web server:Apache2
Database:PostgreSQL
PHP version:php 7.0
Nextcloud version: 12.0.3
Updated from an older Nextcloud/ownCloud or fresh install:updated from older nextcloud
Where did you install Nextcloud from:https://nextcloud.com/install/
Are you using an external user-backend, if yes which one: LDAP

This lead to one user having a broken share in "Shared with others" folder:
errant_folder
I managed to get rid of it by manually deleting the share from DB table oc_share.

I would recommend for nextcloud to check when deleting a file, if it is shared. If yes then delete the share from DB too.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions