Fixes for errors in new bookmarks mirror engine telemetry
Categories
(Firefox :: Sync, defect, P1)
Tracking
()
People
(Reporter: lina, Assigned: lina)
References
Details
Attachments
(2 files, 1 obsolete file)
47 bytes,
text/x-phabricator-request
|
lizzard
:
approval-mozilla-beta+
|
Details | Review |
47 bytes,
text/x-phabricator-request
|
lizzard
:
approval-mozilla-beta+
|
Details | Review |
I spotted a few errors in new bookmark sync telemetry. Explanations for the fixes to follow with each commit.
Assignee | ||
Comment 1•6 years ago
|
||
Downgrading a profile and syncing downgrades the bookmarks mirror
schema version, but leaves the new indexes in place. This causes the
migration logic to throw an "index already exists" error on upgrade.
The fix is to add an IF NOT EXISTS
, to avoid recreating the index.
Depends on D46433
Assignee | ||
Comment 2•6 years ago
|
||
Rewriting a tag query might produce an invalid URL; for example, if the
tag name contains special characters. We don't currently URL-encode tag
folder names in queries (bug 1449939), so our only option is to flag the
query as invalid. This should fix the "<URL> is not a valid URL" and
"url is null" errors seen in telemetry.
Depends on D46434
Assignee | ||
Comment 3•6 years ago
|
||
Depends on D46435
Assignee | ||
Comment 4•6 years ago
|
||
[Tracking Requested - why for this release]: We'll want to uplift these fixes to 70, since we'd like to turn on new bookmark sync by default. All of these are small, well-scoped fixes covered by tests, and avoid breaking bookmark syncing for certain users (folks with tags containing ampersands or non-ASCII characters, and those who downgrade their profiles).
Updated•6 years ago
|
![]() |
||
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2122076416b4
https://hg.mozilla.org/mozilla-central/rev/6fdb8149f1d5
Assignee | ||
Comment 8•6 years ago
|
||
Comment on attachment 9093835 [details]
Bug 1582377 - Catch invalid URLs caused by bookmarks mirror tag query rewriting. r?markh!
Beta/Release Uplift Approval Request
- User impact if declined: The first patch fixes an issue where new bookmark sync breaks for users who downgrade their profiles (for example, using the same profile with Beta, Nightly, and Release). The second fixes an issue where an invalid character in a bookmark tag could cause the entire sync to fail.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): The changes are small, and have xpcshell tests. We'll be keeping an eye on engine error rates to ensure they decrease accordingly.
- String changes made/needed:
Assignee | ||
Updated•6 years ago
|
![]() |
||
Comment 9•6 years ago
|
||
Comment on attachment 9093835 [details]
Bug 1582377 - Catch invalid URLs caused by bookmarks mirror tag query rewriting. r?markh!
Fix for bookmarks sync error, has test coverage, let's uplift for beta 10.
![]() |
||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
bugherder uplift |
Description
•