Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on nextcloud 20 #170

Open
AllenZou opened this issue Nov 27, 2020 · 3 comments
Open

Doesn't work on nextcloud 20 #170

AllenZou opened this issue Nov 27, 2020 · 3 comments
Labels

Comments

@AllenZou
Copy link

nextcloud 20 path: http://ip:8080/remote.php/dav/
not http://ip:8080/remote.php/webdav/

@maurerle
Copy link
Contributor

While /dav/ is the preferred route in the docs, the webdav route still works with NC20 without tinkering nginx.
At least on my end running NC20.0.2.2 in docker.

opening /remote.php/webdav opens
This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client.
jus as /remote.php/dav does.

Might be, that it is only working because this setting is turned on.
https://docs.nextcloud.com/server/latest/user_manual/en/files/access_webdav.html#accessing-public-shares-over-webdav
So we should change all remote.php/webdav requests to /dav, which should work for all routes too for a lot of years

@arnowelzel
Copy link
Collaborator

The code works as following:

In https://github.com/jhass/nextcloud-keeweb/blob/master/keeweb/controller/pagecontroller.php#L89 we use $webdavBase = \OCP\Util::linkToRemote('webdav'); to get an URL from Nextcloud to access files using WebDAV. This method is part of the Nextcloud server: https://github.com/nextcloud/server/blob/ada55a941e49a5bfa5530966cc94fd9510df69ee/lib/public/Util.php#L234

I think, when we replace 'webdav' by 'dav' we should be good to go - but I'll have to test this first since Keeweb uses an access token and I don't know yet, if that token also works for 'dav' instead of 'webdav'.

@arnowelzel
Copy link
Collaborator

arnowelzel commented Nov 29, 2020

Using dav instead of webdav does not work. However, even if I disable Settings → Administration → Sharing → Allow users on this server to send shares to other servers it still works fine in NC20 here.

So whatever is wrong, it is not caused by the wrong URL - in fact using dav instead of webdav fails for accessing a file using a request token.

Also note the documentation at https://docs.nextcloud.com/server/latest/user_manual/en/files/access_webdav.html#accessing-public-shares-over-webdav is about public shares not protected files using an access token.

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

No branches or pull requests

4 participants