Skip to content

Fallback to share link owner when no owner found#2819

Merged
rullzer merged 1 commit into
masterfrom
trash-ext-link-uselinkowner
Dec 23, 2016
Merged

Fallback to share link owner when no owner found#2819
rullzer merged 1 commit into
masterfrom
trash-ext-link-uselinkowner

Conversation

@LukasReschke

Copy link
Copy Markdown
Member

When creating link shares from external storage, the filesystem cannot
find an owner in some scenarios (ex: system-wide mounts). In such
cases, fall back to using the current user's trashbin which happens to
also be the user who created the link share.

Fixes an issue where this scenario made deletion impossible due to
missing user information.

Downstream of owncloud/core#26587, reproduction steps at owncloud/core#25618

When creating link shares from external storage, the filesystem cannot
find an owner in some scenarios (ex: system-wide mounts). In such
cases, fall back to using the current user's trashbin which happens to
also be the user who created the link share.

Fixes an issue where this scenario made deletion impossible due to
missing user information.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
@LukasReschke LukasReschke added 3. to review Waiting for reviews downstream labels Dec 22, 2016
@mention-bot

Copy link
Copy Markdown

@LukasReschke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @schiessle, @icewind1991 and @Xenopathic to be potential reviewers.

@LukasReschke LukasReschke added this to the Nextcloud 12.0 milestone Dec 22, 2016
@schiessle

Copy link
Copy Markdown
Member

makes sense

@rullzer
rullzer merged commit 6f96af0 into master Dec 23, 2016
@rullzer
rullzer deleted the trash-ext-link-uselinkowner branch December 23, 2016 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants