<?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: search_v2 returning wrong server_modified - returns the date of oldest file for all files in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-v2-returning-wrong-server-modified-returns-the-date-of/m-p/653192#M29809</link>
    <description>&lt;P&gt;Thanks for the report! We'll look into it and I'll follow up here once I have an update.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 14:27:50 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-01-23T14:27:50Z</dc:date>
    <item>
      <title>search_v2 returning wrong server_modified - returns the date of oldest file for all files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-v2-returning-wrong-server-modified-returns-the-date-of/m-p/652929#M29804</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm seeing weird intermittent behaviour from the search_v2 endpoint.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to return the server_modified of the oldest file in the search result for every single file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example: Here's a query:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;curl -X POST https://api.dropboxapi.com/2/files/search_v2 \
  --header 'Authorization: Bearer TOKEN_REMOVED' \
  --header 'Content-Type: application/json' \
  --data '{"query":"20230122141412","options":{"file_extensions":[],"filename_only":true}}'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the response is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "has_more": false,
  "matches": [
    {
      "match_type": {
        ".tag": "filename"
      },
      "metadata": {
        ".tag": "metadata",
        "metadata": {
          ".tag": "file",
          "client_modified": "2023-01-22T03:15:21Z",
          "content_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
          "id": "id:iG_fK2UiedcAAAAAAAAPuw",
          "is_downloadable": true,
          "name": "sms-20230122141412.xml",
          "path_display": "/Apps/SMSBackupRestore/sms-20230122141412.xml",
          "path_lower": "/apps/smsbackuprestore/sms-20230122141412.xml",
          "rev": "5f2d1b1e7e8ef2d1f961d",
          "server_modified": "2023-01-22T03:15:09Z",
          "sharing_info": {
            "modified_by": "dbid:AADnkh_8v4p6Kans4_Gbh8f2yHNamMdZPQE",
            "parent_shared_folder_id": "757044765",
            "read_only": false
          },
          "size": 224407
        }
      }
    },
    {
      "match_type": {
        ".tag": "filename"
      },
      "metadata": {
        ".tag": "metadata",
        "metadata": {
          ".tag": "file",
          "client_modified": "2023-01-22T03:15:00Z",
          "content_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
          "id": "id:iG_fK2UiedcAAAAAAAAPug",
          "is_downloadable": true,
          "name": "calls-20230122141412.xml",
          "path_display": "/Apps/SMSBackupRestore/calls-20230122141412.xml",
          "path_lower": "/apps/smsbackuprestore/calls-20230122141412.xml",
          "rev": "5f2d1b0a94ecf2d1f961d",
          "server_modified": "2023-01-22T03:15:09Z",
          "sharing_info": {
            "modified_by": "dbid:AADnkh_8v4p6Kans4_Gbh8f2yHNamMdZPQE",
            "parent_shared_folder_id": "757044765",
            "read_only": false
          },
          "size": 154796
        }
      }
    }
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice the server_modified of both the files is the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another query specifying the filename of the first file returned from the above response:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;curl -X POST https://api.dropboxapi.com/2/files/search_v2 \
  --header 'Authorization: Bearer TOKEN_REMOVED' \
  --header 'Content-Type: application/json' \
  --data '{"query":"sms-20230122141412.xml","options":{"file_extensions":[],"filename_only":true}}'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;returns the correct server_modified:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "has_more": false,
  "matches": [
    {
      "match_type": {
        ".tag": "filename"
      },
      "metadata": {
        ".tag": "metadata",
        "metadata": {
          ".tag": "file",
          "client_modified": "2023-01-22T03:15:21Z",
          "content_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
          "id": "id:iG_fK2UiedcAAAAAAAAPuw",
          "is_downloadable": true,
          "name": "sms-20230122141412.xml",
          "path_display": "/Apps/SMSBackupRestore/sms-20230122141412.xml",
          "path_lower": "/apps/smsbackuprestore/sms-20230122141412.xml",
          "rev": "5f2d1b1e7e8ef2d1f961d",
          "server_modified": "2023-01-22T03:15:30Z",
          "sharing_info": {
            "modified_by": "dbid:AADnkh_8v4p6Kans4_Gbh8f2yHNamMdZPQE",
            "parent_shared_folder_id": "757044765",
            "read_only": false
          },
          "size": 224407
        }
      }
    }
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The server_modified of the file is correct in this response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There seems to be something weird going on with the results.&lt;/P&gt;
&lt;P&gt;Can someone at Dropbox please look into this?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 05:52:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-v2-returning-wrong-server-modified-returns-the-date-of/m-p/652929#M29804</guid>
      <dc:creator>Ritesh</dc:creator>
      <dc:date>2023-01-23T05:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: search_v2 returning wrong server_modified - returns the date of oldest file for all files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-v2-returning-wrong-server-modified-returns-the-date-of/m-p/653192#M29809</link>
      <description>&lt;P&gt;Thanks for the report! We'll look into it and I'll follow up here once I have an update.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 14:27:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-v2-returning-wrong-server-modified-returns-the-date-of/m-p/653192#M29809</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-01-23T14:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: search_v2 returning wrong server_modified - returns the date of oldest file for all files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-v2-returning-wrong-server-modified-returns-the-date-of/m-p/732702#M32382</link>
      <description>&lt;P&gt;Apologies for the delayed response. The team has reported that this was fixed. Please let us know if you're still seeing this.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 19:14:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-v2-returning-wrong-server-modified-returns-the-date-of/m-p/732702#M32382</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-11-27T19:14:16Z</dc:date>
    </item>
  </channel>
</rss>

