Closed
Bug 858992
Opened 12 years ago
Closed 11 years ago
Pinned bookmarks are syncing
Categories
(Firefox for Android Graveyard :: Android Sync, defect)
Tracking
(fennec21+)
RESOLVED
FIXED
Firefox 23
Tracking | Status | |
---|---|---|
fennec | 21+ | --- |
People
(Reporter: rnewman, Assigned: rnewman)
References
Details
(Whiteboard: [status-firefox22: fixed])
Attachments
(1 file)
12.73 KB,
patch
|
rnewman
:
review+
akeybl
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
And Sync doesn't like them.
This will cause Sync to report partial failures. I need to look at the raw record, see if it's really bad.
1365288914929 Sync.Engine.Bookmarks DEBUG J1lu-t8kKGHY mapped to undefined
1365288914929 Sync.Store.Bookmarks DEBUG Applying record J1lu-t8kKGHY
1365288914929 Sync.Store.Bookmarks DEBUG Local parent is pinned
1365288914929 Sync.Store.Bookmarks DEBUG Parent is undefined; reparenting to unfiled.
1365288914930 Sync.Store.Bookmarks WARN Failed to apply incoming record J1lu-t8kKGHY
1365288914930 Sync.Store.Bookmarks WARN Encountered exception: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsINavBookmarksService.insertBookmark] Stack trace: BStore_create()@resource://gre/modules/services-sync/engines/bookmarks.js:660 < Store_applyIncoming()@resource://services-sync/engines.js:267 < BStore_applyIncoming()@resource://gre/modules/services-sync/engines/bookmarks.js:548 < applyIncomingBatch()@resource://services-sync/engines.js:235 < doApplyBatch()@resource://services-sync/engines.js:814 < resource://services-sync/engines.js:925 < resource://services-sync/record.js:625 < Channel_onDataAvail()@resource://gre/modules/services-sync/resource.js:542 < <file:unknown>
1365288914931 Sync.Engine.Bookmarks DEBUG P1vJltCDAHWz mapped to undefined
Assignee | ||
Comment 1•12 years ago
|
||
Ah, this'll do it.
[16:09:40.361] ({tags:[], id:"J1lu-t8kKGHY", parentid:"pinned", title:"weather 94127", type:"bookmark", bmkUri:"weather 94127", parentName:"Pinned"})
So, there are two bugs here:
* Fennec and/or Sync doesn't ignore children of the pinned bookmarks folder when uploading bookmarks.
* Fennec allows you to create a bookmark whose URI is not a URI, at least as a pinned item.
I'll file a second bug for that.
Assignee | ||
Comment 2•12 years ago
|
||
Tracking because a completed sync will result in your pinned bookmarks moving into Unsorted Bookmarks, and thus becoming unpinned. This only doesn't happen now because of Bug 858994 causing the sync to fail!
tracking-fennec: --- → ?
Updated•11 years ago
|
Assignee: nobody → wjohnston
tracking-fennec: ? → 21+
Comment 3•11 years ago
|
||
What's happening with this bug? Is this something that should have been fixed by bug 826539? It seems like this might belong in the Android Sync component.
I'm working on addressing the bad URI issue in bug 858994, but if there's a way for us to just stop syncing pinned bookmarks altogether, that would solve the more pressing issue of sync errors appearing on desktop.
Comment 4•11 years ago
|
||
Sorry, haven't gotten to looking at Android Sync side of this yet. rnewman and I are aware of it and will get to it next week.
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to :Margaret Leibovic from comment #3)
> What's happening with this bug? Is this something that should have been
> fixed by bug 826539? It seems like this might belong in the Android Sync
> component.
I didn't move it (yet), because the code in that bug looks like it should work, and so there might be some other odd thing happening here, like Fennec not including the correct GUID in the returned cursor rows. When we figure out what's going wrong, we'll know where to put the fix :D
> I'm working on addressing the bad URI issue in bug 858994, but if there's a
> way for us to just stop syncing pinned bookmarks altogether, that would
> solve the more pressing issue of sync errors appearing on desktop.
We need to fix this regardless, yes.
(In reply to Nick Alexander :nalexander from comment #4)
> Sorry, haven't gotten to looking at Android Sync side of this yet. rnewman
> and I are aware of it and will get to it next week.
If I'm lucky, I'll get to it in the next fifteen minutes... *crosses fingers*
Assignee | ||
Updated•11 years ago
|
Assignee: wjohnston → rnewman
Status: NEW → ASSIGNED
Component: Data Providers → Android Sync
Product: Firefox for Android → Android Background Services
Assignee | ||
Comment 6•11 years ago
|
||
Update on this: I was either sloppy or too smart for my own good in Bug 826539. That bug prevents incoming pinned items from being applied to an Android device. That neglected any effect on desktop; were it not for those side-effects, it would be the simplest solution, and closest to having syncable pinned sites!
I have a patch in the works that will expand the set of non-uploaded records to match.
Assignee | ||
Comment 7•11 years ago
|
||
Comment 8•11 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #7)
> Fix and test:
>
> https://github.com/mozilla-services/android-sync/pull/309
Review comments are up on github -- code=r+, knowledge transfer=f+.
Assignee | ||
Comment 9•11 years ago
|
||
Target Milestone: --- → Firefox 23
Comment 10•11 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #9)
> https://hg.mozilla.org/integration/mozilla-inbound/rev/5f5bbd697d25
knowledge-transfer++ -- updated comments look great. Thanks!
Comment 11•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 13•11 years ago
|
||
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
Addition of pinned sites without adequate protection being added to Sync. Bug 826539 wasn't enough.
User impact if declined:
Pinned sites in Fennec will be lost (see Bug 877624 for an example user report).
Testing completed (on m-c, etc.):
Baked on m-c and Aurora.
Risk to taking this patch (and alternatives if risky):
Slim, and if something does go wrong, it'll be limited to Sync users. No alternatives.
String or IDL/UUID changes made by this patch:
None.
Attachment #756265 -
Flags: review+
Attachment #756265 -
Flags: approval-mozilla-beta?
Updated•11 years ago
|
Attachment #756265 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Assignee | ||
Comment 14•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-beta/rev/67b0e4327b11
Tracking flags seem to be... missing in this component. Humph. Alex, if you'd prefer, feel free to set the Target Milestone to 22.
Whiteboard: [status-firefox22: fixed]
Updated•7 years ago
|
Product: Android Background Services → Firefox for Android
Updated•4 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
•