I am using Box through type = webdav. I cannot download files having "[" and "]" in the file name.
However, I can download all the files if I use type = box.
What is your rclone version (output from rclone version)
rclone v1.56.0
Which OS you are using and how many bits (eg Windows 7, 64 bit)
os/version: ubuntu 20.04 (64 bit)
os/kernel: 5.8.0-1037-oracle (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.16.5
go/linking: static
go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Box
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone copy box:[file] . -vv
The rclone config contents with secrets removed.
[box]
type = webdav
url = https://dav.box.com/dav
vendor = other
user =
pass =
A log from the command with the -vv flag
2021/08/15 16:47:57 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "copy" "box:[file]" "." "-vv"]
2021/08/15 16:47:57 DEBUG : Creating backend with remote "box:[file]"
2021/08/15 16:47:57 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2021/08/15 16:47:57 DEBUG : found headers:
2021/08/15 16:47:58 DEBUG : fs cache: adding new entry for parent of "box:[file]", "box:"
2021/08/15 16:47:58 DEBUG : Creating backend with remote "."
2021/08/15 16:47:58 DEBUG : fs cache: renaming cache item "." to be canonical "/home/user"
2021/08/15 16:47:58 DEBUG : [file]: Need to transfer - File not found at Destination
2021/08/15 16:47:58 ERROR : [file]: Failed to copy: failed to open source object: 400 Bad Request
2021/08/15 16:47:58 ERROR : Attempt 1/3 failed with 1 errors and: failed to open source object: 400 Bad Request
2021/08/15 16:47:59 DEBUG : [file]: Need to transfer - File not found at Destination
2021/08/15 16:47:59 ERROR : [file]: Failed to copy: failed to open source object: 400 Bad Request
2021/08/15 16:47:59 ERROR : Attempt 2/3 failed with 1 errors and: failed to open source object: 400 Bad Request
2021/08/15 16:47:59 DEBUG : [file]: Need to transfer - File not found at Destination
2021/08/15 16:47:59 ERROR : [file]: Failed to copy: failed to open source object: 400 Bad Request
2021/08/15 16:47:59 ERROR : Attempt 3/3 failed with 1 errors and: failed to open source object: 400 Bad Request
2021/08/15 16:47:59 INFO :
Transferred: 0 / 0 Byte, -, 0 Byte/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 2.1s
2021/08/15 16:47:59 DEBUG : 5 go routines active
2021/08/15 16:47:59 Failed to copy: failed to open source object: 400 Bad Request
Yes. I can reproduce the issue using your commands. In addition, I start a server by rclone serve webdav box@box: and add the local webdav config. I can copy the [testfile] from the local webdav.
I guess the issue caused by that the encoding of "[" and "]" are different in box dav server.
The following are the outputs.
user@instance:~$ rclone touch box:testfolder/[testfile]
user@instance:~$ rclone lsl box:testfolder
0 2021-08-17 23:08:25.000000000 [testfile]
user@instance:~$ rclone copy box:testfolder ./testfolder --ignore-times --dry-run --retries=1 -vv
2021/08/17 23:09:00 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "copy" "box:testfolder" "./testfolder" "--ignore-times" "--dry-run" "--retries=1" "-vv"]
2021/08/17 23:09:00 DEBUG : Creating backend with remote "box:testfolder"
2021/08/17 23:09:00 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2021/08/17 23:09:00 DEBUG : found headers:
2021/08/17 23:09:00 DEBUG : Creating backend with remote "./testfolder"
2021/08/17 23:09:00 DEBUG : fs cache: renaming cache item "./testfolder" to be canonical "/home/user/testfolder"
2021/08/17 23:09:01 DEBUG : Local file system at /home/user/testfolder: Waiting for checks to finish
2021/08/17 23:09:01 NOTICE: [testfile]: Skipped copy as --dry-run is set (size 0)
2021/08/17 23:09:01 DEBUG : Local file system at /home/user/testfolder: Waiting for transfers to finish
2021/08/17 23:09:01 NOTICE:
Transferred: 0 / 0 Byte, -, 0 Byte/s, ETA -
Transferred: 1 / 1, 100%
Elapsed time: 1.0s
2021/08/17 23:09:01 DEBUG : 4 go routines active
user@instance:~$ rclone copy box:testfolder/[testfile] ./testfolder --ignore-times --dry-run --retries=1 -vv
2021/08/17 23:09:30 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "copy" "box:testfolder/[testfile]" "./testfolder" "--ignore-times" "--dry-run" "--retries=1" "-vv"]
2021/08/17 23:09:30 DEBUG : Creating backend with remote "box:testfolder/[testfile]"
2021/08/17 23:09:30 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2021/08/17 23:09:30 DEBUG : found headers:
2021/08/17 23:09:30 DEBUG : fs cache: adding new entry for parent of "box:testfolder/[testfile]", "box:testfolder"
2021/08/17 23:09:30 DEBUG : Creating backend with remote "./testfolder"
2021/08/17 23:09:30 DEBUG : fs cache: renaming cache item "./testfolder" to be canonical "/home/user/testfolder"
2021/08/17 23:09:31 DEBUG : [testfile]: Need to transfer - File not found at Destination
2021/08/17 23:09:31 NOTICE: [testfile]: Skipped copy as --dry-run is set (size 0)
2021/08/17 23:09:31 NOTICE:
Transferred: 0 / 0 Byte, -, 0 Byte/s, ETA -
Transferred: 1 / 1, 100%
Elapsed time: 0.7s
2021/08/17 23:09:31 DEBUG : 4 go routines active
user@instance:~$ rclone copy box:testfolder ./testfolder --ignore-times --retries=1 -vv
2021/08/17 23:10:22 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "copy" "box:testfolder" "./testfolder" "--ignore-times" "--retries=1" "-vv"]
2021/08/17 23:10:22 DEBUG : Creating backend with remote "box:testfolder"
2021/08/17 23:10:22 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2021/08/17 23:10:22 DEBUG : found headers:
2021/08/17 23:10:23 DEBUG : Creating backend with remote "./testfolder"
2021/08/17 23:10:23 DEBUG : fs cache: renaming cache item "./testfolder" to be canonical "/home/user/testfolder"
2021/08/17 23:10:23 DEBUG : Local file system at /home/user/testfolder: Waiting for checks to finish
2021/08/17 23:10:23 DEBUG : Local file system at /home/user/testfolder: Waiting for transfers to finish
2021/08/17 23:10:23 ERROR : [testfile]: Failed to copy: failed to open source object: 400 Bad Request
2021/08/17 23:10:23 ERROR : Attempt 1/1 failed with 1 errors and: failed to open source object: 400 Bad Request
2021/08/17 23:10:23 INFO :
Transferred: 0 / 0 Byte, -, 0 Byte/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.9s
2021/08/17 23:10:23 DEBUG : 5 go routines active
2021/08/17 23:10:23 Failed to copy: failed to open source object: 400 Bad Request