<?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: listDatastoreInfo.mtime can be nil in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/listDatastoreInfo-mtime-can-be-nil/m-p/119349#M3473</link>
    <description>&lt;P&gt;The &lt;CODE&gt;mtime&lt;/CODE&gt; on both &lt;CODE&gt;DBDatastore&lt;/CODE&gt; and &lt;CODE&gt;DBDatastoreInfo&lt;/CODE&gt; can be &lt;CODE&gt;nil&lt;/CODE&gt;, per the documentation:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/datastore/docs/ios#DBDatastore.mtime" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/datastore/docs/ios#DBDatastore.mtime&lt;/A&gt; :&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The last modified time for this datastore, or nil if no data has been synced yet.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/datastore/docs/ios#DBDatastoreInfo.mtime" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/datastore/docs/ios#DBDatastoreInfo.mtime&lt;/A&gt; :&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The last modified time for this datastore, or nil if none is set.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The fact that one is &lt;CODE&gt;nil&lt;/CODE&gt; when the other isn't though is a little surprising. When does this happen exactly? Can you supply some sample code?&lt;/P&gt;

&lt;P&gt;Also, are you sure you're looking at the same datastore in your output here? That is, &lt;CODE&gt;store.mtime&lt;/CODE&gt;, is referring to a specific datastore, but &lt;CODE&gt;store.manager.listDatastoreInfo(nil).select&lt;/CODE&gt;... seems to be looking for any &lt;CODE&gt;DBDatastoreInfo&lt;/CODE&gt; where &lt;CODE&gt;mtime&lt;/CODE&gt; is &lt;CODE&gt;nil&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Feb 2015 02:27:20 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2015-02-17T02:27:20Z</dc:date>
    <item>
      <title>listDatastoreInfo.mtime can be nil</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/listDatastoreInfo-mtime-can-be-nil/m-p/119348#M3472</link>
      <description>&lt;P&gt;I have this issue where &lt;CODE&gt;datastoreInfo.mtime&lt;/CODE&gt; is &lt;CODE&gt;nil&lt;/CODE&gt; for some of my datastores. I would expect that it can never be nil. This is all the more curious that &lt;CODE&gt;datastore.mtime&lt;/CODE&gt; is never nil for the same datastore. This makes the mtime attribute unrealiable to use. &lt;/P&gt;

&lt;P&gt;I have had this issue for several months now but never got round to reporting it/examining it deeply.&lt;/P&gt;

&lt;P&gt;Caram&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(main)&amp;gt; store
=&amp;gt; #&amp;lt;DBDatastore:0x111ea5680&amp;gt;
(main)&amp;gt; store.mtime
=&amp;gt; 2015-02-14 22:20:08 +0100
(main)&amp;gt; store.manager.listDatastoreInfo(nil).select{ |id, info| info.mtime == nil }.values.first.mtime
=&amp;gt; nil
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;iOS 8.1.3&lt;BR /&gt;
XCode 6.1&lt;BR /&gt;
SDK 3.1.2&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:45:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/listDatastoreInfo-mtime-can-be-nil/m-p/119348#M3472</guid>
      <dc:creator>Caram</dc:creator>
      <dc:date>2019-05-29T09:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: listDatastoreInfo.mtime can be nil</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/listDatastoreInfo-mtime-can-be-nil/m-p/119349#M3473</link>
      <description>&lt;P&gt;The &lt;CODE&gt;mtime&lt;/CODE&gt; on both &lt;CODE&gt;DBDatastore&lt;/CODE&gt; and &lt;CODE&gt;DBDatastoreInfo&lt;/CODE&gt; can be &lt;CODE&gt;nil&lt;/CODE&gt;, per the documentation:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/datastore/docs/ios#DBDatastore.mtime" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/datastore/docs/ios#DBDatastore.mtime&lt;/A&gt; :&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The last modified time for this datastore, or nil if no data has been synced yet.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/datastore/docs/ios#DBDatastoreInfo.mtime" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/datastore/docs/ios#DBDatastoreInfo.mtime&lt;/A&gt; :&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The last modified time for this datastore, or nil if none is set.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The fact that one is &lt;CODE&gt;nil&lt;/CODE&gt; when the other isn't though is a little surprising. When does this happen exactly? Can you supply some sample code?&lt;/P&gt;

&lt;P&gt;Also, are you sure you're looking at the same datastore in your output here? That is, &lt;CODE&gt;store.mtime&lt;/CODE&gt;, is referring to a specific datastore, but &lt;CODE&gt;store.manager.listDatastoreInfo(nil).select&lt;/CODE&gt;... seems to be looking for any &lt;CODE&gt;DBDatastoreInfo&lt;/CODE&gt; where &lt;CODE&gt;mtime&lt;/CODE&gt; is &lt;CODE&gt;nil&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2015 02:27:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/listDatastoreInfo-mtime-can-be-nil/m-p/119349#M3473</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-02-17T02:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: listDatastoreInfo.mtime can be nil</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/listDatastoreInfo-mtime-can-be-nil/m-p/119350#M3474</link>
      <description>&lt;P&gt;Greg, yeap they are the same datastores; I did check, even though did not report all the command lines here. Sorry no sample code but the entire app, difficult to know when and why it did occur, but the result is still visible today in some datastore.&lt;/P&gt;

&lt;P&gt;Is there anything I could to to provide you with more information for this datastore?&lt;/P&gt;

&lt;P&gt;I would suspect a &lt;CODE&gt;datastore&lt;/CODE&gt; and &lt;CODE&gt;listDatastoreInfo&lt;/CODE&gt;are not looking at the same data struture and for some reason, in some unfortunate corner case, the &lt;CODE&gt;time&lt;/CODE&gt; attribute does not get copied across. But obviously I don't have the code to check this out. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2015 02:40:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/listDatastoreInfo-mtime-can-be-nil/m-p/119350#M3474</guid>
      <dc:creator>Caram</dc:creator>
      <dc:date>2015-02-17T02:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: listDatastoreInfo.mtime can be nil</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/listDatastoreInfo-mtime-can-be-nil/m-p/119351#M3475</link>
      <description>&lt;P&gt;Thanks Caram. Some sample code and steps to reproduce this would be helpful. Also, sample output showing this happening with the same datastore, e.g., with a specific ID, may be useful.&lt;/P&gt;

&lt;P&gt;Anyway, since both of these &lt;EM&gt;can&lt;/EM&gt; be &lt;CODE&gt;nil&lt;/CODE&gt;, is it possible you're somehow just catching this before it was propagated to both places? When is this happening? I.e., when are you catching it in the debugger (per your above output)?&lt;/P&gt;

&lt;P&gt;Also, just to confirm, you are always looking at &lt;CODE&gt;mtime&lt;/CODE&gt; and not "time", right? I just ask because you said "time" in your original question (which I fixed) but you did it again in this followup.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 05:38:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/listDatastoreInfo-mtime-can-be-nil/m-p/119351#M3475</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-02-18T05:38:34Z</dc:date>
    </item>
  </channel>
</rss>

