Skip to content

[Bug]: Sub folder shares were broken on ownership transfer #42407

@luka-nextcloud

Description

@luka-nextcloud

⚠️ This issue respects the following points: ⚠️

Bug description

After an ownership transfer (via the web interface), sub shares can be broken and it's impossible to restore.

Steps to reproduce

  • userA shares a folder D1 with userB
  • userB creates and shares a subfolder D2 and shares it with userC
  • userA revoke the share of D1 with userB
  • userA transfers ownership of D1 to userD

After userD accepts the transfer:

  • userC loses access to the folder D2
  • if userD tries to share the folder D2 with userC : error message "Node for share not found, fileid: 132472"

Expected behavior

My suggestion for expected behavior:
Re-share should be deleted if restore failed to not block creating new share for the same user.

Installation method

Community Docker image

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Metadata

Metadata

Type

No type

Projects

Status

☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions