<?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: Different namespace behavior /files/list_folder and /files/search_v2 API calls, bug? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Different-namespace-behavior-files-list-folder-and-files-search/m-p/657907#M29955</link>
    <description>&lt;P&gt;Thanks for the detailed report! This looks like a bug on the search endpoint. We'll look into it and I'll follow up here when I have an update.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 16:58:59 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-02-08T16:58:59Z</dc:date>
    <item>
      <title>Different namespace behavior /files/list_folder and /files/search_v2 API calls, bug?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Different-namespace-behavior-files-list-folder-and-files-search/m-p/657876#M29951</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am encountering a peculiar issue with the &lt;STRONG&gt;/2/files/search_v2&lt;/STRONG&gt; call in combination with &lt;STRONG&gt;team namespace ids&lt;/STRONG&gt;, and I am not sure if this is a bug or the expected behaviour of the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider the following team space configuration:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/Team Dropbox (1)
/Team Dropbox/Sarah (2)
/Team Dropbox/Sarah/Documents
/Team Dropbox/Sarah/Documents/Example.doc
/Team Dropbox/John (3)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When I make a &lt;STRONG&gt;/2/files/list_folder&lt;/STRONG&gt;&amp;nbsp;call using&lt;STRONG&gt; {"path":"/Documents"}&lt;/STRONG&gt; with the &lt;STRONG&gt;Sarah&lt;/STRONG&gt; account, I get the contents of the &lt;STRONG&gt;/Documents&lt;/STRONG&gt; folder, including the file &lt;STRONG&gt;Example.doc&lt;/STRONG&gt;. This is all perfectly fine.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, if I also make a call to &lt;STRONG&gt;/2/files/search_v2&lt;/STRONG&gt; using &lt;STRONG&gt;{"query":"Example","options":{"filename_only":true,"path":"/Documents"}}&lt;/STRONG&gt; with the &lt;STRONG&gt;Sarah&lt;/STRONG&gt; account, I get no results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After some testing I noticed that the &lt;STRONG&gt;/2/files/list_folder&lt;/STRONG&gt; call &lt;EM&gt;implicitly&lt;/EM&gt; uses the &lt;EM&gt;home folder&lt;/EM&gt; of Sarah &lt;STRONG&gt;(&lt;SPAN&gt;home_namespace_id:&amp;nbsp;&lt;/SPAN&gt;2)&lt;/STRONG&gt; to list the content. However, the &lt;STRONG&gt;/2/files/search_v2&lt;/STRONG&gt; API call uses&amp;nbsp;&lt;EM&gt;the root folder&lt;/EM&gt;&lt;STRONG&gt;&amp;nbsp;(&lt;SPAN&gt;root_namespace_id:&amp;nbsp;&lt;/SPAN&gt;1)&lt;/STRONG&gt;.&amp;nbsp;&lt;SPAN&gt;So the search call won't return any results in this case because the &lt;STRONG&gt;/Documents&lt;/STRONG&gt; path provided isn't correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To resolve this, I can use &lt;STRONG&gt;{"query":"Example","options":{"filename_only":true,"path":"/Sarah/Documents"}}&lt;/STRONG&gt;&amp;nbsp;where I add the Sarah home folder in the path. Or I can add the header &lt;STRONG&gt;Dropbox-API-Path-Root:&lt;/STRONG&gt; &lt;STRONG&gt;{".tag":"namespace_id","namespace_id":"2"}&lt;/STRONG&gt; to the original call. When I do this, the file Example.doc is returned in the search results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why are the /files/list_folder and /files/search_v2 calls using a different root/home location? Or is it a bug and should the home_namespace_id (2) also be used implicitly for the /files/search_v2 call, as with the /files/list_folder call?&amp;nbsp;Or am I missing something here?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 15:21:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Different-namespace-behavior-files-list-folder-and-files-search/m-p/657876#M29951</guid>
      <dc:creator>De L.1</dc:creator>
      <dc:date>2023-02-08T15:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Different namespace behavior /files/list_folder and /files/search_v2 API calls, bug?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Different-namespace-behavior-files-list-folder-and-files-search/m-p/657907#M29955</link>
      <description>&lt;P&gt;Thanks for the detailed report! This looks like a bug on the search endpoint. We'll look into it and I'll follow up here when I have an update.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 16:58:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Different-namespace-behavior-files-list-folder-and-files-search/m-p/657907#M29955</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-02-08T16:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Different namespace behavior /files/list_folder and /files/search_v2 API calls, bug?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Different-namespace-behavior-files-list-folder-and-files-search/m-p/657911#M29956</link>
      <description>&lt;P&gt;Thanks for looking into this, Greg!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this perhaps related to the issue discussed on &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Search-shared-folder-suddenly-doesn-t-work/td-p/655510" target="_blank"&gt;https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Search-shared-folder-suddenly-doesn-t-work/td-p/655510&lt;/A&gt;? I started getting reports of this issue a few days ago, so it may be a bug that has been introduced recently.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 17:11:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Different-namespace-behavior-files-list-folder-and-files-search/m-p/657911#M29956</guid>
      <dc:creator>De L.1</dc:creator>
      <dc:date>2023-02-08T17:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Different namespace behavior /files/list_folder and /files/search_v2 API calls, bug?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Different-namespace-behavior-files-list-folder-and-files-search/m-p/657913#M29957</link>
      <description>&lt;P&gt;Yes, that is likely the same issue.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 17:13:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Different-namespace-behavior-files-list-folder-and-files-search/m-p/657913#M29957</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-02-08T17:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Different namespace behavior /files/list_folder and /files/search_v2 API calls, bug?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Different-namespace-behavior-files-list-folder-and-files-search/m-p/659792#M29985</link>
      <description>&lt;P&gt;Thanks for reporting this issue. This issue is now fixed and should be working properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies for any inconvenience this may have caused, and thanks again for bringing this to our attention.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 20:06:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Different-namespace-behavior-files-list-folder-and-files-search/m-p/659792#M29985</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-02-14T20:06:50Z</dc:date>
    </item>
  </channel>
</rss>

