Oddity with one drive and spaces in folder names

Hi

I’ve just experienced something a bit odd so thought I would bring it up here before raising a github issue. I’ve been using 1.36 successfully for a while, but last night it started failing with any folder with a space in the name. Before last night it worked fine, and I haven’t changed the rclone executable. Is anyone else seeing this - is it an rclone issue, or have onedrive changed/broken their API server-side?

I was doing a copy, and although most of it worked I started getting a load of errors:

2017/03/29 10:43:35 ERROR : RAW Video/2016/2016-04-22/MOV00559.MPG: Failed to copy: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent
2017/03/29 10:43:35 ERROR : RAW Video/2016/2016-09-01/MOV00011.MPG: Failed to copy: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent
2017/03/29 10:43:35 ERROR : RAW Video/2016/2016-06-02/CIMG0441.AVI: Failed to copy: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent

I pinned this down to folders with spaces in the name. I can replicate locally (I’m using Windows 10):

rclone mkdir one:“Folder with a space”

rclone lsd one:
-1 2017-03-02 15:05:51 1209 Backup
-1 2017-03-29 10:27:47 0 Folder with a space
-1 2017-03-28 17:04:07 3 rc

rclone lsd one:“Folder with a space”
2017/03/29 11:27:59 directory not found

rclone ls one:“Folder with a space”
2017/03/29 11:28:04 Failed to ls: directory not found

rclone copy test.txt one:“Folder with a space”
2017/03/29 11:38:18 ERROR : Attempt 1/3 failed with 1 errors and: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent
2017/03/29 11:38:19 ERROR : Attempt 2/3 failed with 1 errors and: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent
2017/03/29 11:38:19 ERROR : Attempt 3/3 failed with 1 errors and: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent
2017/03/29 11:38:19 Failed to copy: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent

Although if I login to the onedrive website I can see and use the folder.

Is anyone else experiencing this??

1 Like

Looking into the rclone --dump-headers, I’m not sure rclone is doing the right thing?

2017/03/29 11:37:50 DEBUG : HTTP REQUEST (req 0xc0420efa00)
2017/03/29 11:37:50 DEBUG : GET /v1.0/drive/root:/Folder+with+a+space HTTP/1.1

It encodes the spaces into +, but the spec at https://dev.onedrive.com/misc/addressing.htm says they should be encoded as %20. Perhaps this is something that used to work before yesterday but they just now tightening up on?

I’m having the same problem. Yesterday everything was working fine :confused:

I created a issue on github:


Please, let they know there that you all are passing for this problem as well.

There is a fix on that issue if anyone wants to have a go with it.

1 Like

I just found this, of course after I posted my topic about spaces in filenames. @ncw if the fix you made also addresses filenames as well as directory/folder names, I’m willing to take it for a spin. What’s the best way to get an updated rclone with the fix?

Thanks!

Beta.rclone.org should have the latest.

Thanks for the pointer. Just tried the latest beta (rclone-v1.36-120-ga9d29c22β-linux-amd64), and the issue with filenames with spaces is still present in this build.

Hello i have the same issue
I tried this version v1.36-154-gb0474022β on MacOS

i have this message : Failed to copy: failed to make directory: itemNotFound: Item does not exist

1.37 beta fixed this issue.

1 Like