Skip to content

Sharing a file with just create and/or delete permission should fail #35922

@phil-davis

Description

@phil-davis

Steps to reproduce

Use the sharing API. Attempt to share a single file with another user, but request just create (4) and/or delete (8) permissions.

Expected behaviour

create and delete permissions are not valid/relevant for single file shares, so they get masked out. The resulting effective requested share permission is 0 (no permissions).

The share should not be created. A "40*" response should be returned.

Actual behaviour

When create is requested, the share is created with 0 permissions. It is a useless share because the receiver cannot see the file in any way.

When delete is requested, the share is created with read 1 permissions. The receiver can read the file - that is weird, I wonder what code causes that to happen.

See PR #35921 for the example test scenarios that demonstrate this.

Server configuration

Current core on GitHub.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions