Closed
Bug 749857
Opened 12 years ago
Closed 12 years ago
Invalid history record with empty URI and no visits created
Categories
(Firefox for Android Graveyard :: Android Sync, defect, P1)
Tracking
(firefox14 fixed, blocking-fennec1.0 +)
RESOLVED
FIXED
mozilla15
People
(Reporter: philikon, Assigned: rnewman)
Details
Attachments
(1 file)
3.53 KB,
patch
|
rnewman
:
review+
mfinkle
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
I finally connected my Nightly on Android to my Sync account. I had been using Nightly on my Android phone as my main mobile browser since it went native. After it synced, the desktop popped up a Sync Error. I went to the log and found out it was a history record with the guid "Toebm22f68pV". Downloaded and decrypted the record manually: [17:43:38.910] > var rec = [output of manual download goes here] [17:45:53.502] > Components.utils.import("resource://services-sync/engines/history.js"); [17:46:37.473] > var hrec = new HistoryRec("history", "Toebm22f68pV"); [17:46:55.670] > hrec.deserialize(rec); [17:47:24.686] > hrec.decrypt() [17:47:24.703] < ({id:"Toebm22f68pV", visits:[], histUri:""}) So, it seems Android Sync created a history visit with an empty URI (which is invalid already) and an empty visit list (which is also not correct and will be rejected by mozIAsyncHistory::updatePlaces().
Assignee | ||
Comment 1•12 years ago
|
||
Primary problem: there's a history record in Fennec's database that doesn't have a URI. Secondary problem: we shouldn't upload it. (Tertiary problem: getting a DB off the device is a pain.) I will prep a fix for the secondary problem, but still want to investigate whether Fennec did something wrong here -- either during some migration stage, or in storing a blank record.
Assignee | ||
Comment 2•12 years ago
|
||
Nominating as release blocker; if this happens in the wild it'll cause problems. Easy band-aid fix will be up for review shortly. Lucas, Margaret, anyone else wandering by: any idea how this might end up in the DB?
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
blocking-fennec1.0: --- → ?
Assignee | ||
Comment 3•12 years ago
|
||
https://github.com/mozilla-services/android-sync/pull/176
Whiteboard: [needs review]
Comment 4•12 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #2) > Nominating as release blocker; if this happens in the wild it'll cause > problems. Easy band-aid fix will be up for review shortly. Lucas, Margaret, > anyone else wandering by: any idea how this might end up in the DB? I'm not immediately aware of what could have caused this. If Phil has been using Fennec Native since it first moved to Nightly, it's possible his profile could have been busted by code that's since been fixed. We have a constraint that prevents this from happening: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/db/BrowserProvider.java.in#327 Looking at hg blame, that code was added when we moved to using our own database for history data. I'm not sure what happened when we switched from using the Android browser database to our own, but I imagine that could have caused problems.
Updated•12 years ago
|
Priority: -- → P1
Updated•12 years ago
|
blocking-fennec1.0: ? → +
Assignee | ||
Comment 5•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/4ef64adfb6a0
Whiteboard: [needs review]
Target Milestone: --- → mozilla15
Assignee | ||
Comment 6•12 years ago
|
||
Patch for uplift. Release blocker.
Attachment #619673 -
Flags: review+
Attachment #619673 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•12 years ago
|
Whiteboard: [waiting for aurora+]
Comment 7•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/74108dd3201d
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Attachment #619673 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Updated•12 years ago
|
status-firefox14:
--- → fixed
Whiteboard: [waiting for aurora+]
Assignee | ||
Comment 8•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/112c34415cff
Comment 10•12 years ago
|
||
philikon, is this fixed for you now?
Updated•11 years ago
|
Product: Mozilla Services → Android Background Services
Updated•7 years ago
|
Product: Android Background Services → Firefox for Android
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
•