OneDrive + obfuscate filename = invalid url
Open
Nobody has claimed this yet.
bug
Remote: One Drive
- Dominant language
- Go
- Stars
- 59.8k
- Forks
- 5.4k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 48
Description
What is the problem you are having with rclone?
Using onedrive + crypt, I got an error uploading one of my file.
After long search, I suspect that graph API have some undocumented limitation over unicode 0xFFF0 - 0xFFFF.
What is your rclone version (output from rclone version)
1.50.2-DEV
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows 10, 64 bit
Which cloud storage system are you using? (eg Google Drive)
Onedrive, Crypt
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone copy D:\abc OD_Crypt:abc
A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)
2019/12/02 15:47:56 DEBUG : GET /v1.0/drives/b!-**/root:/**/13-45%EF%BF%AB%EF%BC%8D%EF%BF%9B%EF%BC%8C***%EF%BF%BB***%EF%BC%8E%EF%BF%AB%EF%BF%9D%EF%BF%9E***%EF%BF%B3***.ivu HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.50.2-DEV
Authorization: XXXX
Accept-Encoding: gzip
2019/12/02 15:47:56 DEBUG : HTTP RESPONSE (req 0xc00192e600)
2019/12/02 15:47:56 DEBUG : HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 324
Content-Type: text/html; charset=us-ascii
Date: Mon, 02 Dec 2019 07:47:56 GMT
Server: Microsoft-HTTPAPI/2.0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing rclone copy D:\abc OD_Crypt:abc with OneDrive and crypt, then trace the request shown in the log for the obfuscated filename and its invalid URL response. Done means the affected upload or lookup no longer produces an invalid URL, with coverage for the reported filename case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100