Closed
Bug 944881
Opened 11 years ago
Closed 11 years ago
Gaia should interpret timestamps as long-long numbers
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(blocking-b2g:1.3+, b2g-v1.3 fixed)
People
(Reporter: airpingu, Assigned: steveck)
References
Details
Attachments
(1 file, 1 obsolete file)
+++ This bug was initially created as a clone of Bug #939302 +++ Bug 939302 is going to change all the timestamps to be long-long numbers. Gaia needs to have corresponding changes to avoid breaking the backward compatibility. This one should be marked as V1.3 because it blocks Bug 939302 which is a blocker of V1.3.
Reporter | ||
Comment 1•11 years ago
|
||
Hi Steve, As title, we are going to change all the timestamps to be long-long numbers due to bug 939302, including {sms,mms}timestamp, {sms,mms}deliveryTimestamp, {sms,mms}readTimestamp and thread.timestamp. This is just a quick WIP patch to address what we're going to do. I'd appreciate if you could take over the Gaia part. One strange thing is, what I can only see in the current Gaia master is thread.timestamp. How about others like deliveryTimestamp you're working on?
Attachment #8340633 -
Flags: feedback?(schung)
Comment 2•11 years ago
|
||
Why is security sensitive?
Updated•11 years ago
|
Group: core-security
Assignee | ||
Comment 3•11 years ago
|
||
deliveryTimestamp is still in WIP bug 933131, I will also apply the changes in the patch. This changes will also need for desktop mock and unit test. If you have any question about the test or have no cycle to finish all these stuff, please let me know, thanks.
Reporter | ||
Comment 4•11 years ago
|
||
Per off-line discussion, Steve can help take over this.
Assignee: gene.lian → schung
Comment 5•11 years ago
|
||
Can I have access to Bug #939302 please?
Comment 6•11 years ago
|
||
Done.
Reporter | ||
Comment 7•11 years ago
|
||
Hi Steve, please see bug 939302, comment #41 which might be a better approach to keep the backward compatibility.
Comment 8•11 years ago
|
||
(In reply to Boris Zbarsky [:bz] from comment #6) > Done. Can you grant me access as well? Thanks
Reporter | ||
Comment 9•11 years ago
|
||
Done. :)
Comment 10•11 years ago
|
||
I think that we always convert the Date to a timestamp (using getTime()) and really use a timestamp in the sms code, so let's just use "+timestamp" instead of calling getTime() :)
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 8340633 [details] [diff] [review] Patch (WIP) Clear feedback and thanks for the tip!
Attachment #8340633 -
Flags: feedback?(schung)
Reporter | ||
Comment 12•11 years ago
|
||
Hi Joe, we need to mark this as V1.3+ because this bug blocks Bug 939302 which is a V1.3+ blocker.
Flags: needinfo?(jcheng)
Assignee | ||
Comment 13•11 years ago
|
||
Hi Julien, this patch force all timestamp related properties to long int(and also changed unit test/mock and desktop test). I'll also fix delivery timestamp in bug 933131 once this patch landed, thanks.
Attachment #8340633 -
Attachment is obsolete: true
Attachment #8345340 -
Flags: review?(felash)
Comment 14•11 years ago
|
||
Comment on attachment 8345340 [details] [review] Link to github Looks good, mostly nits, and one oversight. I'd like to wait for another pass before giving r+ but I think it will be fine at the next review!
Attachment #8345340 -
Flags: review?(felash)
Assignee | ||
Comment 15•11 years ago
|
||
Comment on attachment 8345340 [details] [review] Link to github Hi Julien, another commit for your suggestions, thanks for the feedback!
Attachment #8345340 -
Flags: review?(felash)
Updated•11 years ago
|
Flags: needinfo?(jcheng)
Updated•11 years ago
|
Flags: needinfo?(jcheng)
Comment 17•11 years ago
|
||
Comment on attachment 8345340 [details] [review] Link to github r=me thanks! easy patch, but so boring ;)
Attachment #8345340 -
Flags: review?(felash) → review+
Assignee | ||
Comment 18•11 years ago
|
||
Landed in master: 87345e3947da71386552561d5f15109955d4fe15
Reporter | ||
Comment 19•11 years ago
|
||
Need someone's help to land this to V1.3 branch for Gaia and then we can then bug 939302.
Keywords: checkin-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•