Skip to content

can't access public link resources with spaces webdav API #3085

Closed

Description

@SagarGi

Description

Using the new WebDAV API, public link resources are accessed using the link token. But it cannot be performed using the spaces WebDAV since we do not have a proper user to request for the spaceid.

Question

  • Is there any way to access public link resources by public users using the spaces WebDAV API?
  • If not will this feature ever be implemented?

Activity

  1. stale commented on Apr 3, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

  2. phil-davis commented on Apr 4, 2022

    @phil-davis
    Contributor

    @SagarGi please check if this is still a problem. If so, then we can add a tag so that the bot does not try to close this.

    I guess that a public link should be able to be created and used on a resource in a space!

  3. SagarGi commented on Apr 5, 2022

    @SagarGi
    MemberAuthor

    @phil-davis for a public accessing the public link for the resource, the space id still cannot be created (when public make a request using spaces WebDav API)

    for the below request

    When the public lists the resources in the last created public link with depth "0" using the WebDAV API

    It says

    getPersonalSpaceIdForUser webdav propfind for user cbDEADiQdnFCPsL failed with status 401 - so the personal space id cannot be discovered
  4. phil-davis commented on Apr 5, 2022

    @phil-davis
    Contributor

    @SagarGi I wonder why the test code has to try to find a space-id?

    I thought that the "last created public link" would have a path like:
    http://172.17.0.1:8080/index.php/s/5kNPEAXJgpYCo58

    And that accessing that when accessing that "magic string" 5kNPEAXJgpYCo58 "share", the server will do whatever it needs to do in the back-end to find the resources(s) that are part of the public link (find the relevant space...)

    I guess it is not relevant/useful for "the public" to discover public links by browsing space-ids and then browsing in the space to find public links that are offered for resources in the space. That would be a breach of public link security - a member of "the public" really has to know the "magic string" like 5kNPEAXJgpYCo58 to be allowed access to the resource(s).

    So we should adjust such tests - probably just delete the examples for "public links using spaces webDAV API"?

    @micbar or anyone - is my analysis correct?

  5. SagarGi commented on Apr 5, 2022

    @SagarGi
    MemberAuthor

    @phil-davis i also think it is not relevant for the public as space-id is for a user. we have actually added spaces examples in some suites probably regarding this issue.

  6. stale commented on Jun 10, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

  7. phil-davis commented on Jun 13, 2022

    @phil-davis
    Contributor

    @butonic @micbar or? cc @individual-it

    We have the long-time-existing WebDAV endpoints which have a way to access public links using the public link token (and optional password, if set).

    Going forward, will those remain the only ways to access a public link?

    The public link may be a share of a "personal" resource, that is in the user's personal space, which has the personal space id of that user. The public link may be a share of a resource in a "project" space, which has a space id that different from any user.

    Will there be any ways to access public links somehow via the "spaces" concept and endpoints?

  8. micbar commented on Jul 13, 2022

    @micbar
    Contributor

    Is there any way to access public link resources by public users using the spaces WebDAV API?

    They can only be accessed via the WebDAV endpoint with the link token.

    example URL

    https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/public-files/BjNhZgrkZTWJHej

    There are no plans to change this in the future.

  9. stale commented on Sep 15, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

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

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