<?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: filesListFolderLongpoll fires changes: without changes within the folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/424522#M22688</link>
    <description>&lt;P&gt;It's at least possible that in this case my app could ignore/not store the returned cursor and just restart the longpoll but that seems hacky&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 17:19:03 GMT</pubDate>
    <dc:creator>elsigh</dc:creator>
    <dc:date>2020-05-27T17:19:03Z</dc:date>
    <item>
      <title>filesListFolderLongpoll fires changes: without changes within the folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/424521#M22687</link>
      <description>&lt;P&gt;I have a folder and I get a cursor for it and call filesListFolderLongpoll...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I go to the parent folder of the folder I'm polling and add a file to it, the longpoll returns for the child folder with `changes:true` (but nothing within the folder I'm actually polling has changed).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I call filesListFolderContinue with the cursor I get a response with a new cursor but no actual changes ala:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;&lt;SPAN class="hljs-attr"&gt;"entries"&lt;/SPAN&gt;&lt;SPAN&gt;: [], &lt;/SPAN&gt;&lt;SPAN class="hljs-attr"&gt;"cursor"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="hljs-string"&gt;"AAHp_o9htUtsuvBy6ZLjlTyxIetGJZKp64hcFe641rOod28dbdiXDDw18CXg4T1DtBXDPexxpdzO9K8x8s7iX6YDB6XLcyzAJCPwb5xQuXSyXEbnjOEptD1xNvCUAG0hxxnWN5TgPl3fd-urlcaMtmzvt-0rVRg-RmKxJsbgp_7cKMrccWDoodbQFmNe2DrvY0nSgedfTcMxzWktRANN0hP8zzsv9uXrR4vZgoNaYPEv7BKQLZgdgBCiZHJvV1__tQ4h0AOpFvFK67An_KMgMgJwDZMQ7DnckIBAfoboOrJm5g"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="hljs-attr"&gt;"has_more"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="hljs-literal"&gt;false&lt;/SPAN&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;For my app we use a "preferences" file and the app saves the latest cursor values there it results in a false positive change-loop&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;since they asked me to open the ticket&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 09:38:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/424521#M22687</guid>
      <dc:creator>elsigh</dc:creator>
      <dc:date>2020-05-29T09:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: filesListFolderLongpoll fires changes: without changes within the folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/424522#M22688</link>
      <description>&lt;P&gt;It's at least possible that in this case my app could ignore/not store the returned cursor and just restart the longpoll but that seems hacky&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 17:19:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/424522#M22688</guid>
      <dc:creator>elsigh</dc:creator>
      <dc:date>2020-05-27T17:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: filesListFolderLongpoll fires changes: without changes within the folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/424527#M22689</link>
      <description>&lt;P&gt;Thanks for the report. For clarity though, can you also share the code and parameter values you're using, e.g., for&amp;nbsp;filesListFolder,&amp;nbsp;filesListFolderContinue, and filesListFolderLongpoll? That would help make sure we investigate the right scenario.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, when you say this "results in a false positive change-loop", do you mean you're getting stuck in a&amp;nbsp;`changes:true` -&amp;gt; ` "entries": [], ...,&lt;SPAN class="hljs-attr"&gt;"has_more"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="hljs-literal"&gt;false&lt;/SPAN&gt;` infinite loop, or does that happen just once per change?&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 17:50:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/424527#M22689</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-27T17:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: filesListFolderLongpoll fires changes: without changes within the folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/424555#M22690</link>
      <description>&lt;P&gt;Sure! Here's how I repro'd it on my side:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I called&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder/get_latest_cursor" target="_blank"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder/get_latest_cursor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;with path: "/Apps/Songbook.Studio/Library" (if you need ids from me instead let me know)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then I called&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder/longpoll" target="_blank"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder/longpoll&lt;/A&gt;&lt;/P&gt;&lt;P&gt;with cursor: "&lt;SPAN&gt;AAHYcbsJjEIIcObeUpf7Uu9QgkTFe0-6zAH3f43ypSgDm035GKew13WormET99lOBzz9Z9HCKOEapDe_Gp4fCP0TqDKb_FF6yHe6RnACghIQJSa7XT4HrKj2wKFvAFsWOl89bqvtBD0VYZ4JPvGzpmuSJ_xyjFjJH9-SnkxRe7Q0148beWvf71Jk68ukBNnsawn7jutFHLzS82LzJhA4y4z2fNjMvTx9yB8c61gakAVkGhG7v73CsiFpNNHfcxzbqpE"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it sits and spins...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I went to the Dropbox web UI and dragged/dropped a test image file (foo.png) into the parent folder: "/Apps/Songbook.Studio"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the longpoll returns with `changes: true` at this point&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I call&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder/continue" target="_blank"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder/continue&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;with cursor: "AAHYcbsJjEIIcObeUpf7Uu9QgkTFe0-6zAH3f43ypSgDm035GKew13WormET99lOBzz9Z9HCKOEapDe_Gp4fCP0TqDKb_FF6yHe6RnACghIQJSa7XT4HrKj2wKFvAFsWOl89bqvtBD0VYZ4JPvGzpmuSJ_xyjFjJH9-SnkxRe7Q0148beWvf71Jk68ukBNnsawn7jutFHLzS82LzJhA4y4z2fNjMvTx9yB8c61gakAVkGhG7v73CsiFpNNHfcxzbqpE"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and the response is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ &lt;SPAN class="hljs-attr"&gt;"entries"&lt;/SPAN&gt;: [], &lt;SPAN class="hljs-attr"&gt;"cursor"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"AAHp_o9htUtsuvBy6ZLjlTyxIetGJZKp64hcFe641rOod28dbdiXDDw18CXg4T1DtBXDPexxpdzO9K8x8s7iX6YDB6XLcyzAJCPwb5xQuXSyXEbnjOEptD1xNvCUAG0hxxnWN5TgPl3fd-urlcaMtmzvt-0rVRg-RmKxJsbgp_7cKMrccWDoodbQFmNe2DrvY0nSgedfTcMxzWktRANN0hP8zzsv9uXrR4vZgoNaYPEv7BKQLZgdgBCiZHJvV1__tQ4h0AOpFvFK67An_KMgMgJwDZMQ7DnckIBAfoboOrJm5g"&lt;/SPAN&gt;, &lt;SPAN class="hljs-attr"&gt;"has_more"&lt;/SPAN&gt;: &lt;SPAN class="hljs-literal"&gt;false&lt;/SPAN&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I mean by the loop in my situation is that everytime I get a new cursor I update a file&amp;nbsp;"/Apps/Songbook.Studio/.preferences.json" as my "durable storage" for the user's last update. When I do that, it triggers the longpoll's to return with the cycle described, so I have a kind of infinite back and forth.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 19:45:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/424555#M22690</guid>
      <dc:creator>elsigh</dc:creator>
      <dc:date>2020-05-27T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: filesListFolderLongpoll fires changes: without changes within the folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/424564#M22691</link>
      <description>&lt;P&gt;Got it, thanks! That's helpful. We'll look into it.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 20:22:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/424564#M22691</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-27T20:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: filesListFolderLongpoll fires changes: without changes within the folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/426788#M22759</link>
      <description>&lt;P&gt;In the meantime, what do you think about my idea of preserving the original cursor and just starting the poll again?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 20:48:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/426788#M22759</guid>
      <dc:creator>elsigh</dc:creator>
      <dc:date>2020-06-04T20:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: filesListFolderLongpoll fires changes: without changes within the folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/427010#M22762</link>
      <description>&lt;P&gt;That seems like a reasonable way to workaround the issue. As long as you don't get and process any new entries and still reach `has_more:false`, it would be fine to fall back to original cursor to avoid making another change, which would trigger that loop again. If/when you do get actual changes returned, you can then process them and save the next cursor. (Saving that new cursor would trigger this issue again, but that would just be the one extra iteration of the loop.)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 15:28:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/filesListFolderLongpoll-fires-changes-without-changes-within-the/m-p/427010#M22762</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-06-05T15:28:33Z</dc:date>
    </item>
  </channel>
</rss>

