Biz.mail.ru: Rclone webdav 400 Bad Request

Hello,

Sevice biz.mail.ru webdav
bug log
rclone -vv --dump-headers copy /root/rclone/rclone-beta-latest-linux-amd64.zip bizmail:/rclone-beta-latest-linux-amd64.zip
2018/05/10 14:39:15 NOTICE: --dump-headers is obsolete - please use --dump headers instead
2018/05/10 14:39:15 DEBUG : rclone: Version “v1.41” starting with parameters [“rclone” “-vv” “–dump-headers” “copy” “/root/rclone/rclone-beta-latest-linux-amd64.zip” “bizmail:/rclone-beta-latest-linux-amd64.zip”]
2018/05/10 14:39:15 DEBUG : Using config file from “/root/.config/rclone/rclone.conf”
2018/05/10 14:39:15 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 14:39:15 DEBUG : HTTP REQUEST (req 0xc42015b400)
2018/05/10 14:39:15 DEBUG : PROPFIND /rclone-beta-latest-linux-amd64.zip HTTP/1.1
Host: webdav.mail.ru
User-Agent: rclone/v1.41
Authorization: XXXX
Accept-Encoding: gzip

2018/05/10 14:39:15 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 14:39:16 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 14:39:16 DEBUG : HTTP RESPONSE (req 0xc42015b400)
2018/05/10 14:39:16 DEBUG : HTTP/1.1 400 Bad Request
Content-Length: 5
Connection: keep-alive
Content-Type: text/html; charset=utf-8
Date: Thu, 10 May 2018 12:39:16 GMT
Server: nginx/1.12.2
X-Host: cld-webdav1

2018/05/10 14:39:16 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 14:39:16 DEBUG : Couldn’t decode error response: EOF
2018/05/10 14:39:16 Failed to create file system for “bizmail:/rclone-beta-latest-linux-amd64.zip”: read metadata failed: 400 Bad Request

Can you do this with --dump bodies please? Hopefully there will be a more helpful error message.

Do other things work like rclone lsf?

==================
DEBUG : rclone: Version “v1.41” starting with parameters [“rclone” “-vv” “–dump” “bodies” “copy” “/root/rclone/rclone-beta-latest-linux-amd64.zip” “bizmail:/rclone-beta-latest-linux-amd64.zip”]
2018/05/10 15:21:14 DEBUG : Using config file from “/root/.config/rclone/rclone.conf”
2018/05/10 15:21:14 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:21:14 DEBUG : HTTP REQUEST (req 0xc42031c900)
2018/05/10 15:21:14 DEBUG : PROPFIND /rclone-beta-latest-linux-amd64.zip HTTP/1.1
Host: webdav.mail.ru
User-Agent: rclone/v1.41
Authorization: XXXX
Accept-Encoding: gzip

2018/05/10 15:21:14 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:21:14 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 15:21:14 DEBUG : HTTP RESPONSE (req 0xc42031c900)
2018/05/10 15:21:14 DEBUG : HTTP/1.1 400 Bad Request
Content-Length: 5
Connection: keep-alive
Content-Type: text/html; charset=utf-8
Date: Thu, 10 May 2018 13:21:14 GMT
Server: nginx/1.12.2
X-Host: cld-webdav1

FIXME
2018/05/10 15:21:14 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 15:21:14 DEBUG : Couldn’t decode error response: EOF
2018/05/10 15:21:14 Failed to create file system for “bizmail:/rclone-beta-latest-linux-amd64.zip”: read metadata failed: 400 Bad Request

===============

work “ls” :

rclone -vv --dump-bodies ls bizmail:/
2018/05/10 15:09:28 NOTICE: --dump-bodies is obsolete - please use --dump bodies instead
2018/05/10 15:09:28 DEBUG : rclone: Version “v1.41” starting with parameters [“rclone” “-vv” “–dump-bodies” “ls” “bizmail:/”]
2018/05/10 15:09:28 DEBUG : Using config file from “/root/.config/rclone/rclone.conf”
2018/05/10 15:09:28 INFO : webdav root ‘’: Modify window not supported
2018/05/10 15:09:28 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:09:28 DEBUG : HTTP REQUEST (req 0xc420168b00)
2018/05/10 15:09:28 DEBUG : PROPFIND / HTTP/1.1
Host: webdav-mail-ru
User-Agent: rclone/v1.41
Authorization: XXXX
Depth: 1
Accept-Encoding: gzip

2018/05/10 15:09:28 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:09:28 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 15:09:28 DEBUG : HTTP RESPONSE (req 0xc420168b00)
2018/05/10 15:09:28 DEBUG : HTTP/1.1 207 Multi-Status
Content-Length: 328
Connection: keep-alive
Content-Type: application/xml; charset=“utf-8”
Date: Thu, 10 May 2018 13:09:28 GMT
Server: nginx/1.12.2
X-Host: cld-webdav1

<?xml version="1.0" encoding="utf-8"?>

<d:multistatus xmlns:d=“DAV:”>
<d:response>
<d:href>/</d:href>
<d:propstat>
<d:status>HTTP/1.1 200 OK</d:status>
<d:prop>
<d:displayname>Cloud</d:displayname>
<d:resourcetype><d:collection/></d:resourcetype>
</d:prop>
</d:propstat>
</d:response>
</d:multistatus>
2018/05/10 15:09:28 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 15:09:28 DEBUG : 4 go routines active
2018/05/10 15:09:28 DEBUG : rclone: Version “v1.41” finishing with parameters [“rclone” “-vv” “–dump-bodies” “ls” “bizmail:/”]
[root@vp211 rclone]# rclone -vv --dump-bodies ls bizmail:/
2018/05/10 15:10:19 NOTICE: --dump-bodies is obsolete - please use --dump bodies instead
2018/05/10 15:10:19 DEBUG : rclone: Version “v1.41” starting with parameters [“rclone” “-vv” “–dump-bodies” “ls” “bizmail:/”]
2018/05/10 15:10:19 DEBUG : Using config file from “/root/.config/rclone/rclone.conf”
2018/05/10 15:10:19 INFO : webdav root ‘’: Modify window not supported
2018/05/10 15:10:19 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:10:19 DEBUG : HTTP REQUEST (req 0xc420183400)
2018/05/10 15:10:19 DEBUG : PROPFIND / HTTP/1.1
Host: webdav-mail-ru
User-Agent: rclone/v1.41
Authorization: XXXX
Depth: 1
Accept-Encoding: gzip

2018/05/10 15:10:19 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:10:19 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 15:10:19 DEBUG : HTTP RESPONSE (req 0xc420183400)
2018/05/10 15:10:19 DEBUG : HTTP/1.1 207 Multi-Status
Content-Length: 843
Connection: keep-alive
Content-Type: application/xml; charset=“utf-8”
Date: Thu, 10 May 2018 13:10:19 GMT
Server: nginx/1.12.2
X-Host: cld-webdav1

<?xml version="1.0" encoding="utf-8"?>

<d:multistatus xmlns:d=“DAV:”>
<d:response>
<d:href>/</d:href>
<d:propstat>
<d:status>HTTP/1.1 200 OK</d:status>
<d:prop>
<d:displayname>Cloud</d:displayname>
<d:resourcetype><d:collection/></d:resourcetype>
</d:prop>
</d:propstat>
</d:response>
<d:response>
<d:href>/tl-wdr4300-webflash.bin</d:href>
<d:propstat>
<d:status>HTTP/1.1 200 OK</d:status>
<d:prop>
<d:displayname>tl-wdr4300-webflash.bin</d:displayname>
<d:getcontentlength>8060956</d:getcontentlength>
<d:getcontenttype>application/x-macbinary</d:getcontenttype>
<d:getetag>756D124CCF96D67BB45B635A0F9D155DBAA1ECBD</d:getetag>
<d:getlastmodified>Thu, 22 Jan 2015 00:19:45 GMT</d:getlastmodified>
<d:resourcetype/>
</d:prop>
</d:propstat>
</d:response>
</d:multistatus>
2018/05/10 15:10:19 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
8060956 tl-wdr4300-webflash.bin
2018/05/10 15:10:19 DEBUG : 4 go routines active
2018/05/10 15:10:19 DEBUG : rclone: Version “v1.41” finishing with parameters [“rclone” “-vv” “–dump-bodies” “ls” “bizmail:/”]

============================
not work mkdir

rclone -vv --dump-bodies mkdir bizmail:/new
2018/05/10 15:12:13 NOTICE: --dump-bodies is obsolete - please use --dump bodies instead
2018/05/10 15:12:13 DEBUG : rclone: Version “v1.41” starting with parameters [“rclone” “-vv” “–dump-bodies” “mkdir” “bizmail:/new”]
2018/05/10 15:12:13 DEBUG : Using config file from “/root/.config/rclone/rclone.conf”
2018/05/10 15:12:13 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:12:13 DEBUG : HTTP REQUEST (req 0xc42032c900)
2018/05/10 15:12:13 DEBUG : PROPFIND /new HTTP/1.1
Host: webdav-mail-ru
User-Agent: rclone/v1.41
Authorization: XXXX
Accept-Encoding: gzip

2018/05/10 15:12:13 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:12:14 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 15:12:14 DEBUG : HTTP RESPONSE (req 0xc42032c900)
2018/05/10 15:12:14 DEBUG : HTTP/1.1 400 Bad Request
Content-Length: 5
Connection: keep-alive
Content-Type: text/html; charset=utf-8
Date: Thu, 10 May 2018 13:12:14 GMT
Server: nginx/1.12.2
X-Host: cld-webdav1

FIXME
2018/05/10 15:12:14 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 15:12:14 DEBUG : Couldn’t decode error response: EOF
2018/05/10 15:12:14 Failed to create file system for “bizmail:/new”: read metadata failed: 400 Bad Request

not work rmdir

rclone -vv --dump-bodies rmdir bizmail:/new
2018/05/10 15:13:43 NOTICE: --dump-bodies is obsolete - please use --dump bodies instead
2018/05/10 15:13:43 DEBUG : rclone: Version “v1.41” starting with parameters [“rclone” “-vv” “–dump-bodies” “rmdir” “bizmail:/new”]
2018/05/10 15:13:43 DEBUG : Using config file from “/root/.config/rclone/rclone.conf”
2018/05/10 15:13:43 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:13:43 DEBUG : HTTP REQUEST (req 0xc42030c900)
2018/05/10 15:13:43 DEBUG : PROPFIND /new HTTP/1.1
Host: webdav-mail-ru
User-Agent: rclone/v1.41
Authorization: XXXX
Accept-Encoding: gzip

2018/05/10 15:13:43 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:13:43 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 15:13:43 DEBUG : HTTP RESPONSE (req 0xc42030c900)
2018/05/10 15:13:43 DEBUG : HTTP/1.1 400 Bad Request
Content-Length: 5
Connection: keep-alive
Content-Type: text/html; charset=utf-8
Date: Thu, 10 May 2018 13:13:43 GMT
Server: nginx/1.12.2
X-Host: cld-webdav2

FIXME
2018/05/10 15:13:43 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 15:13:43 DEBUG : Couldn’t decode error response: EOF
2018/05/10 15:13:43 Failed to create file system for “bizmail:/new”: read metadata failed: 400 Bad Request

============================

not work delete

rclone -vv --dump-bodies delete bizmail:/tl-wdr4300-webflash.bin
2018/05/10 15:15:28 NOTICE: --dump-bodies is obsolete - please use --dump bodies instead
2018/05/10 15:15:28 DEBUG : rclone: Version “v1.41” starting with parameters [“rclone” “-vv” “–dump-bodies” “delete” “bizmail:/tl-wdr4300-webflash.bin”]
2018/05/10 15:15:28 DEBUG : Using config file from “/root/.config/rclone/rclone.conf”
2018/05/10 15:15:28 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:15:28 DEBUG : HTTP REQUEST (req 0xc42032a900)
2018/05/10 15:15:28 DEBUG : PROPFIND /tl-wdr4300-webflash.bin HTTP/1.1
Host: webdav-mail-ru
User-Agent: rclone/v1.41
Authorization: XXXX
Accept-Encoding: gzip

2018/05/10 15:15:28 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/05/10 15:15:28 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 15:15:28 DEBUG : HTTP RESPONSE (req 0xc42032a900)
2018/05/10 15:15:28 DEBUG : HTTP/1.1 400 Bad Request
Content-Length: 5
Connection: keep-alive
Content-Type: text/html; charset=utf-8
Date: Thu, 10 May 2018 13:15:28 GMT
Server: nginx/1.12.2
X-Host: cld-webdav2

FIXME
2018/05/10 15:15:28 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/05/10 15:15:28 DEBUG : Couldn’t decode error response: EOF
2018/05/10 15:15:28 Failed to create file system for “bizmail:/tl-wdr4300-webflash.bin”: read metadata failed: 400 Bad Request

Thank you for the credentials.

Here is a beta to try with a couple of fixes in

  • Always supply Depth: 1 to PROPFIND calls - it seems to help!
  • Allow 406 errors to mean directory already exists

With those two fixes I can download and upload files OK - how does it work for you?

https://beta.rclone.org/v1.41-039-gc370f974-webdav-fixes/ (uploaded in 15-30 mins)

The error is fixed! checked! :slight_smile:

Thank you!

Thanks for testing!

This fix will be in the latest beta from now on and v1.42.