Closed
Bug 1415656
Opened 7 years ago
Closed 7 years ago
Android sync stores bookmark dateAdded as string
Categories
(Firefox for Android Graveyard :: Android Sync, defect, P2)
Firefox for Android Graveyard
Android Sync
Tracking
(firefox59 fixed)
RESOLVED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: tcsc, Assigned: tcsc)
Details
Attachments
(1 file)
It should be a number. The code that stores it is here http://searchfox.org/mozilla-central/source/mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/domain/BookmarkRecord.java#288 It does the right thing when reading, although it's a bit oblivious to the fact that it caused it's own confusion there :p http://searchfox.org/mozilla-central/source/mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/domain/BookmarkRecord.java#192 Luckily at least desktop will do the correct thing when ratcheting the timestamp backwards http://searchfox.org/mozilla-central/source/toolkit/components/places/PlacesSyncUtils.jsm#1032 (e.g. +existingMillis, when called from http://searchfox.org/mozilla-central/source/services/sync/modules/engines/bookmarks.js#131 ) I don't know iOS well enough to tell, I looked but it's not clear if it will do the right or wrong thing when reading or writing.
Comment 1•7 years ago
|
||
Heh, that's a silly little bug. It seems that most we can do here is to stop sending it out as a string, keeping the reading logic intact. And double check iOS's behaviour in case of strings for the date.
Updated•7 years ago
|
Assignee: nobody → tchiovoloni
Priority: -- → P2
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8928265 [details] Bug 1415656 - Fix android serializing dateAdded as a string in sync bookmark records https://reviewboard.mozilla.org/r/199486/#review205042
Attachment #8928265 -
Flags: review?(gkruglov) → review+
Pushed by tchiovoloni@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/65f08f1b6fb2 Fix android serializing dateAdded as a string in sync bookmark records r=Grisha
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/65f08f1b6fb2
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Updated•7 years ago
|
Target Milestone: Firefox 58 → Firefox 59
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•