<?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 Export file: Size and content_hash mismatch? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Export-file-Size-and-content-hash-mismatch/m-p/497374#M24759</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;We use the Dropbox API to fetch and export Paper documents.&lt;BR /&gt;Recently (like 2 days ago) we observed that the API is returning, what seems to us, inconsistent values.&lt;/P&gt;
&lt;P&gt;For example, we added a trivial paper document (which had one emoji) and ran the following:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;curl -i -X POST &lt;A href="https://content.dropboxapi.com/2/files/export" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/export&lt;/A&gt; \&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--header "Authorization: Bearer &amp;lt;token&amp;gt;" \&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--header "Dropbox-API-Arg: {\"path\": \"/testfiles/Trivial Paper.paper\"}"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And got the response pasted below.&lt;BR /&gt;A few salient things:&lt;BR /&gt;- The Dropbox-Api-Result header says "size": 829, however the Content-Length/Original-Content-Length and the actual body are all 833 bytes&lt;BR /&gt;- Furthermore, the content_hash doesn't seem to match up with either the content hash of the full body (833 bytes) OR of the first or last 829 bytes of the body.&lt;BR /&gt;- FWIW, if I remove the emoji from the paper, then the "size" in the metadata returned and the Content-Length headers match up, but I still can't get the content hash to match up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This seems to have started recently (in the last 2 days), prior to that the same fetches were working fine.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Would appreciate any guidance on this. Currently our sanity checks (on byte size and content hash) are failing.&lt;/P&gt;
&lt;P&gt;Thanks very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(P.S. Raw HTTP response of above curl command pasted below)&lt;/P&gt;
&lt;P&gt;----&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;HTTP/1.1 200 OK&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Server: envoy&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Date: Wed, 17 Feb 2021 07:27:07 GMT&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Type: text/html&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Length: 833&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Vary: Accept-Encoding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cache-Control: no-cache&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Pragma: no-cache&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Etag: W/"015ace578ceee32000000018fe46d40"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Dropbox-Api-Result: {"export_metadata": {"name": "Trivial Paper.html", "size": 829, "export_hash": "5735ebcc4387ce073968bdd5dd5a391dc83494a88a487fcc2c87801e624dec26", "paper_revision": 113}, "file_metadata": {"name": "Trivial Paper.paper", "path_lower": "/testfiles/trivial paper.paper", "path_display": "/testfiles/Trivial Paper.paper", "id": "id:zzZ_oD_6Z-AAAAAAAAAAEQ", "client_modified": "2020-08-15T07:27:37Z", "server_modified": "2020-08-15T07:27:37Z", "rev": "015ace578ceee32000000018fe46d40", "size": 200, "is_downloadable": false, "export_info": {"export_as": "html", "export_options": ["html", "markdown"]}, "content_hash": "77c5750f3cbff7c5268f69e63980655a2a75637e6772941f0e3c48b3a4010b45"}}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Accept-Ranges: bytes&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Original-Content-Length: 833&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Server-Response-Time: 811&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Robots-Tag: noindex, nofollow, noimageindex&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Strict-Transport-Security: max-age=31536000; includeSubDomains&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Robots-Tag: noindex, nofollow, noimageindex&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Dropbox-Request-Id: bfd5a6e63ceb4806a96f9422adc36443&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;div dir="auto" style="font-weight: 400; font-size: 40px; line-height: 48px; padding-bottom: 25px;color: #1b2733; text-decoration: none;" class="ace-line "&amp;gt;&amp;lt;span&amp;gt;Trivial Paper&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div dir="auto" style="line-height: 26px;" class="ace-line "&amp;gt;&amp;lt;span&amp;gt;This is a test &amp;lt;/span&amp;gt;&amp;lt;span&amp;gt;&amp;lt;a target="_blank" data-target-href="&lt;A href="https://help.dropbox.com/files-folders/paper/paper-2020-faqs" target="_blank" rel="noopener"&gt;https://help.dropbox.com/files-folders/paper/paper-2020-faqs&lt;/A&gt;" style="color: #47B5FA; text-decoration: none" href="&lt;A href="https://help.dropbox.com/files-folders/paper/paper-2020-faqs" target="_blank" rel="noopener"&gt;https://help.dropbox.com/files-folders/paper/paper-2020-faqs&lt;/A&gt;" rel="noreferrer nofollow noopener"&amp;gt;Paper 2020&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span&amp;gt; doc. &amp;lt;/span&amp;gt;&amp;lt;span&amp;gt;&amp;lt;img src="&lt;A href="https://paper.dropboxstatic.com/static/img/ace/emoji/1f386.png?version=6.0.0" target="_blank" rel="noopener"&gt;https://paper.dropboxstatic.com/static/img/ace/emoji/1f386.png?version=6.0.0&lt;/A&gt;" data-emoji-ch="&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@1962F4B6A20B452B89D3A1AB67A1B601/emoticons/1f386.png" alt=":fireworks:" title=":fireworks:" /&gt;" height="16" alt="fireworks" title="fireworks"&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div dir="auto" style="line-height: 26px;" class="ace-line "&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 15:15:39 GMT</pubDate>
    <dc:creator>heavy-paper-user</dc:creator>
    <dc:date>2021-02-18T15:15:39Z</dc:date>
    <item>
      <title>Export file: Size and content_hash mismatch?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Export-file-Size-and-content-hash-mismatch/m-p/497374#M24759</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;We use the Dropbox API to fetch and export Paper documents.&lt;BR /&gt;Recently (like 2 days ago) we observed that the API is returning, what seems to us, inconsistent values.&lt;/P&gt;
&lt;P&gt;For example, we added a trivial paper document (which had one emoji) and ran the following:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;curl -i -X POST &lt;A href="https://content.dropboxapi.com/2/files/export" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/export&lt;/A&gt; \&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--header "Authorization: Bearer &amp;lt;token&amp;gt;" \&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--header "Dropbox-API-Arg: {\"path\": \"/testfiles/Trivial Paper.paper\"}"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And got the response pasted below.&lt;BR /&gt;A few salient things:&lt;BR /&gt;- The Dropbox-Api-Result header says "size": 829, however the Content-Length/Original-Content-Length and the actual body are all 833 bytes&lt;BR /&gt;- Furthermore, the content_hash doesn't seem to match up with either the content hash of the full body (833 bytes) OR of the first or last 829 bytes of the body.&lt;BR /&gt;- FWIW, if I remove the emoji from the paper, then the "size" in the metadata returned and the Content-Length headers match up, but I still can't get the content hash to match up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This seems to have started recently (in the last 2 days), prior to that the same fetches were working fine.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Would appreciate any guidance on this. Currently our sanity checks (on byte size and content hash) are failing.&lt;/P&gt;
&lt;P&gt;Thanks very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(P.S. Raw HTTP response of above curl command pasted below)&lt;/P&gt;
&lt;P&gt;----&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;HTTP/1.1 200 OK&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Server: envoy&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Date: Wed, 17 Feb 2021 07:27:07 GMT&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Type: text/html&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Length: 833&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Vary: Accept-Encoding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cache-Control: no-cache&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Pragma: no-cache&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Etag: W/"015ace578ceee32000000018fe46d40"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Dropbox-Api-Result: {"export_metadata": {"name": "Trivial Paper.html", "size": 829, "export_hash": "5735ebcc4387ce073968bdd5dd5a391dc83494a88a487fcc2c87801e624dec26", "paper_revision": 113}, "file_metadata": {"name": "Trivial Paper.paper", "path_lower": "/testfiles/trivial paper.paper", "path_display": "/testfiles/Trivial Paper.paper", "id": "id:zzZ_oD_6Z-AAAAAAAAAAEQ", "client_modified": "2020-08-15T07:27:37Z", "server_modified": "2020-08-15T07:27:37Z", "rev": "015ace578ceee32000000018fe46d40", "size": 200, "is_downloadable": false, "export_info": {"export_as": "html", "export_options": ["html", "markdown"]}, "content_hash": "77c5750f3cbff7c5268f69e63980655a2a75637e6772941f0e3c48b3a4010b45"}}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Accept-Ranges: bytes&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Original-Content-Length: 833&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Server-Response-Time: 811&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Robots-Tag: noindex, nofollow, noimageindex&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Strict-Transport-Security: max-age=31536000; includeSubDomains&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Robots-Tag: noindex, nofollow, noimageindex&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Dropbox-Request-Id: bfd5a6e63ceb4806a96f9422adc36443&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;div dir="auto" style="font-weight: 400; font-size: 40px; line-height: 48px; padding-bottom: 25px;color: #1b2733; text-decoration: none;" class="ace-line "&amp;gt;&amp;lt;span&amp;gt;Trivial Paper&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div dir="auto" style="line-height: 26px;" class="ace-line "&amp;gt;&amp;lt;span&amp;gt;This is a test &amp;lt;/span&amp;gt;&amp;lt;span&amp;gt;&amp;lt;a target="_blank" data-target-href="&lt;A href="https://help.dropbox.com/files-folders/paper/paper-2020-faqs" target="_blank" rel="noopener"&gt;https://help.dropbox.com/files-folders/paper/paper-2020-faqs&lt;/A&gt;" style="color: #47B5FA; text-decoration: none" href="&lt;A href="https://help.dropbox.com/files-folders/paper/paper-2020-faqs" target="_blank" rel="noopener"&gt;https://help.dropbox.com/files-folders/paper/paper-2020-faqs&lt;/A&gt;" rel="noreferrer nofollow noopener"&amp;gt;Paper 2020&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span&amp;gt; doc. &amp;lt;/span&amp;gt;&amp;lt;span&amp;gt;&amp;lt;img src="&lt;A href="https://paper.dropboxstatic.com/static/img/ace/emoji/1f386.png?version=6.0.0" target="_blank" rel="noopener"&gt;https://paper.dropboxstatic.com/static/img/ace/emoji/1f386.png?version=6.0.0&lt;/A&gt;" data-emoji-ch="&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@1962F4B6A20B452B89D3A1AB67A1B601/emoticons/1f386.png" alt=":fireworks:" title=":fireworks:" /&gt;" height="16" alt="fireworks" title="fireworks"&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div dir="auto" style="line-height: 26px;" class="ace-line "&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 15:15:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Export-file-Size-and-content-hash-mismatch/m-p/497374#M24759</guid>
      <dc:creator>heavy-paper-user</dc:creator>
      <dc:date>2021-02-18T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export file: Size and content_hash mismatch?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Export-file-Size-and-content-hash-mismatch/m-p/497646#M24766</link>
      <description>&lt;P&gt;Thanks for the detailed report! We'll look into it and I'll follow up here once I have an update on this for you.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 17:28:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Export-file-Size-and-content-hash-mismatch/m-p/497646#M24766</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-02-18T17:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export file: Size and content_hash mismatch?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Export-file-Size-and-content-hash-mismatch/m-p/500138#M24813</link>
      <description>&lt;P&gt;These issues should be fixed now. Please try again and let me know if you're still seeing any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, note that for&amp;nbsp;/2/files/export, you should compare the exported data with the 'export_hash' value, not the 'content_hash', since this is an export and not a direct download.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 18:14:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Export-file-Size-and-content-hash-mismatch/m-p/500138#M24813</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-02-26T18:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export file: Size and content_hash mismatch?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Export-file-Size-and-content-hash-mismatch/m-p/500234#M24818</link>
      <description>&lt;P&gt;Thanks Greg. Yes, sorry, we were using export_hash in our real code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And yup, the tests that were catching this seem to have passed now. Thanks for the update!&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 08:52:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Export-file-Size-and-content-hash-mismatch/m-p/500234#M24818</guid>
      <dc:creator>heavy-paper-user</dc:creator>
      <dc:date>2021-02-27T08:52:27Z</dc:date>
    </item>
  </channel>
</rss>

