<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Possible bug corrupting file names with certain unicode code points in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/370535#M20902</link>
    <description>&lt;P&gt;Thanks for the report! Sending non-ASCII characters in HTTP headers is not officially supported, so please make sure you're encoding any non-ASCII characters in headers as documented here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/reference/json-encoding" target="_self"&gt;https://www.dropbox.com/developers/reference/json-encoding&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There was a change on our server stack yesterday that affected how we handled HTTP headers without proper encoding. That resulted in malformed file paths/names like the user reported &lt;A href="https://github.com/rclone/rclone/issues/3609#issue-505012438" target="_self"&gt;in the GitHub issue.&lt;/A&gt; We've reverted that change, so that should be working again, but please make sure your headers get encoded properly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 17:34:45 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-10-10T17:34:45Z</dc:date>
    <item>
      <title>Possible bug corrupting file names with certain unicode code points</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/370523#M20899</link>
      <description>&lt;P&gt;An rclone user has discovered that sometimes file names appear to get corrupted.&lt;/P&gt;
&lt;P&gt;See this&amp;nbsp;&lt;A href="https://github.com/rclone/rclone/issues/3609" target="_blank" rel="noopener"&gt;rclone issue&amp;nbsp;&lt;/A&gt;for full details.&lt;/P&gt;
&lt;P&gt;I managed to reproduce this and capture an HTTP transaction.&lt;/P&gt;
&lt;P&gt;First here is uploading a 0 length file named&amp;nbsp;"Русский.txt"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;2019/10/10 12:40:16 DEBUG : HTTP REQUEST (req 0xc000463900)
2019/10/10 12:40:16 DEBUG : POST /2/files/upload HTTP/1.1
Host: content.dropboxapi.com
User-Agent: rclone/v1.49.5
Transfer-Encoding: chunked
Authorization: XXXX
Content-Type: application/octet-stream
Dropbox-Api-Arg: {"path":"/tdir/Русский.txt","mode":{".tag":"overwrite"},"autorename":false,"client_modified":"2000-01-01T00:00:00Z","mute":false,"strict_conflict":false}
Accept-Encoding: gzip

0&lt;/PRE&gt;
&lt;P&gt;And here is the response&lt;/P&gt;
&lt;PRE&gt;2019/10/10 12:40:17 DEBUG : HTTP RESPONSE (req 0xc000463900)
2019/10/10 12:40:17 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Connection: keep-alive
Content-Type: application/json
Date: Thu, 10 Oct 2019 11:40:17 GMT
Pragma: no-cache
Server: nginx
Vary: Accept-Encoding
X-Dropbox-Request-Id: 3a11434e22b08d87588de53cb34c047b
X-Robots-Tag: noindex, nofollow, noimageindex
X-Server-Response-Time: 553

257
{"name": "\u00d0\u00a0\u00d1\u0083\u00d1\u0081\u00d1\u0081\u00d0\u00ba\u00d0\u00b8\u00d0\u00b9.txt", "path_lower": "/tdir/\u00f0\u00a0\u00f1\u0083\u00f1\u0081\u00f1\u0081\u00f0\u00ba\u00f0\u00b8\u00f0\u00b9.txt", "path_display": "/tdir/\u00d0\u00a0\u00d1\u0083\u00d1\u0081\u00d1\u0081\u00d0\u00ba\u00d0\u00b8\u00d0\u00b9.txt", "id": "id:qqS0afUHwS0AAAAAAAPHng", "client_modified": "2000-01-01T00:00:00Z", "server_modified": "2019-10-10T11:40:17Z", "rev": "5948cdd90ee8c082af73a", "size": 0, "is_downloadable": true, "content_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}
0&lt;/PRE&gt;
&lt;P&gt;Note that the name in the response appears to be corrupted.&lt;/P&gt;
&lt;P&gt;If you decode this name you get&lt;/P&gt;
&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; print("\u00d0\u00a0\u00d1\u0083\u00d1\u0081\u00d1\u0081\u00d0\u00ba\u00d0\u00b8\u00d0\u00b9.txt")
Ð ÑÑÑÐºÐ¸Ð¹.txt&lt;/PRE&gt;
&lt;P&gt;Which is now the name of the file in listings instead of "Русский.txt".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since this capture is right at the HTTP level, I don't think it can be my code or the dropbox Go SDK, I think this must be a bug in the dropbox server code.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 18:18:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/370523#M20899</guid>
      <dc:creator>ncw</dc:creator>
      <dc:date>2019-10-11T18:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug corrupting file names with certain unicode code points</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/370534#M20901</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/45015"&gt;@ncw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Take in account that http header content have to be ASCII-based and if need (as is in particular case) names (and not only) have to be JSON-encoded. JSON encoding is missing in your case. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 17:33:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/370534#M20901</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2019-10-10T17:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug corrupting file names with certain unicode code points</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/370535#M20902</link>
      <description>&lt;P&gt;Thanks for the report! Sending non-ASCII characters in HTTP headers is not officially supported, so please make sure you're encoding any non-ASCII characters in headers as documented here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/reference/json-encoding" target="_self"&gt;https://www.dropbox.com/developers/reference/json-encoding&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There was a change on our server stack yesterday that affected how we handled HTTP headers without proper encoding. That resulted in malformed file paths/names like the user reported &lt;A href="https://github.com/rclone/rclone/issues/3609#issue-505012438" target="_self"&gt;in the GitHub issue.&lt;/A&gt; We've reverted that change, so that should be working again, but please make sure your headers get encoded properly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 17:34:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/370535#M20902</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-10-10T17:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug corrupting file names with certain unicode code points</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/370538#M20903</link>
      <description>&lt;P&gt;Thanks for that.&lt;/P&gt;&lt;P&gt;It must be a bug in &lt;A href="https://godoc.org/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" target="_self"&gt;dropbox Go SDK&lt;/A&gt;&amp;nbsp; that the headers aren't being properly encoded&lt;/P&gt;&lt;P&gt;I'll report a bug there in a moment!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 17:55:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/370538#M20903</guid>
      <dc:creator>ncw</dc:creator>
      <dc:date>2019-10-10T17:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug corrupting file names with certain unicode code points</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/370557#M20905</link>
      <description>&lt;P&gt;I made &lt;A href="https://github.com/dropbox/dropbox-sdk-go-unofficial/issues/54" target="_self"&gt;an issue in the Dropbox Go SDK repo&amp;nbsp;&lt;/A&gt;which is where the problem needs to be fixed.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 19:22:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/370557#M20905</guid>
      <dc:creator>ncw</dc:creator>
      <dc:date>2019-10-10T19:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug corrupting file names with certain unicode code points</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/371488#M20935</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"We've reverted that change" - people with the Synology NAS are still having this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reported here:&amp;nbsp;&lt;A href="https://community.synology.com/enu/forum/1/post/129064" target="_blank"&gt;https://community.synology.com/enu/forum/1/post/129064&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 09:03:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/371488#M20935</guid>
      <dc:creator>Hexrby</dc:creator>
      <dc:date>2019-10-15T09:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug corrupting file names with certain unicode code points</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/371604#M20942</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1219270"&gt;@Hexrby&lt;/a&gt;&amp;nbsp;Thanks for the information.&amp;nbsp;If you're still seeing any broken functionality, please let the third party app developer know so that they can contact us with the relevant technical details so we can investigate.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 16:37:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-bug-corrupting-file-names-with-certain-unicode-code/m-p/371604#M20942</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-10-15T16:37:03Z</dc:date>
    </item>
  </channel>
</rss>

