Page 1 of 1

Connecting Nextcloud via WebDAV

Posted: 2018-10-05 13:04
by modda
Hi everyone,

today I got FileZilla Pro and tried to connect my Nextcloud via WebDAV.

As URL I tried:

- https://example.com
- https://example.com/remote.php/dav/files/USERNAME/

With the 2nd way there is a connection but I get the error, that the table of contents could not be received.

Does anybody know, how I can connect die Nextcloud to FileZilla WebDAV?

Best regarda
modda

Re: Connecting Nextcloud via WebDAV

Posted: 2018-10-05 16:24
by botg
Please post a complete and unmodified log.

Re: Connecting Nextcloud via WebDAV

Posted: 2018-10-05 17:48
by modda
Hi, this is the Log. Some words in German:

I masked the real domain.

Status: Auflösen der IP-Adresse für domain.de
Status: Verbinde mit 11.11.11.11:11...
Status: Verbindung hergestellt, initialisiere TLS...
Status: Überprüfe Zertifikat...
Status: TLS-Verbindung hergestellt, schicke HTTP-Anfrage
Befehl: PROPFIND / HTTP/1.1
Befehl: Authorization: **************************
Befehl: Connection: keep-alive
Befehl: Content-Length: 0
Befehl: Depth: 1
Befehl: Host: domain.de:443
Befehl: Keep-Alive: 300
Befehl: User-Agent: FileZilla/3.37.4
Antwort: HTTP/1.1 405 Method Not Allowed
Antwort: Date: Fri, 05 Oct 2018 17:45:01 GMT
Antwort: Server: Apache
Antwort: Expires: Thu, 19 Nov 1981 08:52:00 GMT
Antwort: Cache-Control: no-store, no-cache, must-revalidate
Antwort: Pragma: no-cache
Antwort: Set-Cookie: oc_sessionPassphrase=KcNPD5Le85XpQkzB5qwcsMU8A12qwJ42eG6COfpihVwlkxN%2BOwbel%2FHWH%2BdCOphjjh4OMfhJPyYMVFHY4GxshxJHdq4RzW%2Fo5ItThc7kB5HpLRifOXbq8iYwgBIl9if2; path=/; secure; HttpOnly
Antwort: Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval' 'nonce-THk1SUJRSkxXU215SFVlcVFTSEJEc3VBQ0IrRHBJYTc3VUZqTWdpaTFJdz06ZmgwdVZYRW5FVVR3YmdUQWVSaUhWNTc2WkVXbzNQL0Rsd3hhZVc3d21zQT0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';
Antwort: X-Frame-Options: SAMEORIGIN
Antwort: X-XSS-Protection: 1; mode=block
Antwort: X-Content-Type-Options: nosniff
Antwort: X-Robots-Tag: none
Antwort: X-Download-Options: noopen
Antwort: X-Permitted-Cross-Domain-Policies: none
Antwort: Set-Cookie: __Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
Antwort: Set-Cookie: __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
Antwort: Set-Cookie: ocj5zcpsfx32=914c343b08330ba077ea571ed34884d6; path=/; secure; HttpOnly
Antwort: Set-Cookie: cookie_test=test; expires=Fri, 05-Oct-2018 18:45:01 GMT; Max-Age=3600
Antwort: Upgrade: h2,h2c
Antwort: Connection: Upgrade, Keep-Alive
Antwort: Keep-Alive: timeout=2, max=1000
Antwort: Transfer-Encoding: chunked
Antwort: Content-Type: text/html; charset=UTF-8
Fehler: Verzeichnisinhalt konnte nicht empfangen werden

Re: Connecting Nextcloud via WebDAV

Posted: 2018-10-06 21:41
by botg
The server rejects the PROPFIND method, meaning that the location entered as the default remote directory (or "/" if none entered), is not a WebDAV resource.

Re: Connecting Nextcloud via WebDAV

Posted: 2018-10-08 07:24
by modda
Without changing anything on the server I can connect with the software "Cyberduck" via WebDAV. But in Cyberduck there are advaced Options to type the whole path.

In FileZilla it's:

I Type https://domain.de/remote.php/dav/files/USERNAME/ and after saving it's just https://domain.de

Trying to type the "remote.php/dav/files/USERNAME/" in advanced options and standard-folder of Server don't work.

In Cyberduck i type https://domain.de and in advanced the rest of the path "remote.php/dav/files/USERNAME/" and it works.

So the FileZilla Software maybe needs to be fixed?

Best regards
modda

Re: Connecting Nextcloud via WebDAV

Posted: 2018-10-08 07:56
by botg
Trying to type the "remote.php/dav/files/USERNAME/" in advanced options and standard-folder of Server don't work.
The leading slash needs to be part of the path.

Re: Connecting Nextcloud via WebDAV

Posted: 2018-10-08 08:08
by modda
botg wrote:
2018-10-08 07:56
Trying to type the "remote.php/dav/files/USERNAME/" in advanced options and standard-folder of Server don't work.
The leading slash needs to be part of the path.
Oh - my - god. Awkward.

But at least it will help some other users (If using the search).

Thank you!
modda

Re: Connecting Nextcloud via WebDAV

Posted: 2018-11-24 22:15
by lee3521
Could you please show me an example of what you mean by the "leading slash"? How should I format the Advanced remote folder field and how should I format the host id field?

Re: Connecting Nextcloud via WebDAV

Posted: 2019-01-29 13:29
by chaganaut
I just bought and installed Filezilla Pro for the same reason: Being able to connect to a nextcloud server via webdav.
And I ran in exactly the same issue.
Can you please tell your paying users how you intended this to work with nextcloud webdav??

Like another user already said, there are free alternatives which are able to do this right out of the box and I'm regarding my purchase of filezilla pro as a sponsoring towards the ftp-client I always liked most. But with this sloppy support for the pro version and bloatware inside of the installer of the free version I'm starting to regret my investment.

Re: Connecting Nextcloud via WebDAV

Posted: 2019-01-29 13:55
by botg
A leading slash is a slash that comes at the beginning. It is used to denote absolute paths.

foo is a relative path because it has no leading slash.
/foo is an absolute path because it has a leading slash.

The Site Manager of FileZilla always requires absolute paths for the default remote directory.

Re: Connecting Nextcloud via WebDAV

Posted: 2019-03-06 08:49
by hurpa
Hi,

With this "leading slash" is FZ Pro working okay with Nextcloud?