Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Files not working (or am I missing something?) #1139

Open
tarkhil opened this issue Aug 25, 2022 · 3 comments
Open

Files not working (or am I missing something?) #1139

tarkhil opened this issue Aug 25, 2022 · 3 comments

Comments

@tarkhil
Copy link

tarkhil commented Aug 25, 2022

I'm running owncloud 10.9.1.2.

/ocs/v1.php/cloud/capabilities?format=json shows "webdav-root":"remote.php/webdav", but "remote.php/dav" is hardcoded into client, so I'm listing something instead of my files.

Is it my installation obsolete, or owncloud-sdk 3.0.0-alpha.17 is obsolete, or am I completely missing something essential?

@kulmann
Copy link
Member

kulmann commented Aug 29, 2022

Hey @tarkhil - are webdav operations via owncloud sdk actually not working or is it just the fact that the sdk uses remote.php/dav instead of remote.php/webdav?

The difference between the two endpoints is that

  1. remote.php/webdav implicitly serves files from the home of the authenticated user while
  2. remote.php/dav explicitly requires the username in the endpoint, e.g. remote.php/dav/files/admin.

Version 2 of the ownCloud sdk discontinued (1), see https://github.com/owncloud/owncloud-sdk/blob/master/changelog/2.0.0_2022-02-08/change-remove-webdav-v1-support

But as far as I know any ownCloud 10 supports both (1) and (2), so it should not be an issue, but instead only a client decision. Please let me know if something is broken!

@tarkhil
Copy link
Author

tarkhil commented Aug 29, 2022

DAV as DAV protocol works just fine. It shows something completely unrelated to my files, so as Owncloud client it does not work. I'd love to have some switch to use different endpoints, and in general webdav gives more expectable results. At least for me.

Well, using dav/files/username I've got exactly what I've got with webdav. At least now I know. It should be switchable anyway.

@kulmann
Copy link
Member

kulmann commented Aug 29, 2022

We're planning that you can specify the absolute url of the respective endpoint on every operation. Reason for that is that with ownCloud Infinite Scale we plan that you can have access to distributed storage spaces. Maintaining that only seems to be feasible if the respective webdav endpoint is not constructed within the sdk, but instead just provided by the consuming application. With that you'll be able to use the remote.php/webdav endpoint again - but to be honest, that's still quite the way to go...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants