Skip to content

[Sharing NG] Replace dav property public-link-permission with type #8740

Open

Description

@JammingBen

Describe the bug

When doing a PROPFIND on a public space, the response contains a dav property public-link-permission to indicate the permissions for this link. However, these permissions are being represented via permission bits, which is the old (deprecated) way of the OCS API.

Web needs this information to distinguish between the link types view and uploadOnly, since these can't be distinguished solely by the webdav permissions.

Steps to reproduce

  1. Create a public link for a folder
  2. Do a PROPFIND to list the resources for this folder (e.g. https://host.docker.internal:9200/remote.php/dav/public-files/CIlnOrnDLxMmPHx)
  3. Check the server response for the first resource (= the share itself)

Expected behavior

There is a dav property that represents the link's type, since that's the graph property representing the permissions.

Actual behavior

The is a dav property public-link-permission.

cc @rhafer

Activity

  1. self-assigned this
    on Jun 6, 2024
  2. 2403905 commented on Jun 7, 2024

    @2403905
    Contributor

    @JammingBen What format do you expect for the public-link-permission?

  3. JammingBen commented on Jun 11, 2024

    @JammingBen
    ContributorAuthor

    @2403905

    public-link-permission is the actual behaviour. The new property should reflect the link's type, so I'd name it public-link-type. It should be a simple string representing the type, e.g. view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions