This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1335468157493 Sync.Engine.Tabs INFO Uploading all of 1 records | |
1335468157493 Sync.Collection DEBUG POST Length: 26980 | |
1335468157630 Sync.Collection DEBUG mesg: POST fail 400 https://phx-sync542.services.mozilla.com/1.1/holygoat/storage/tabs | |
1335468157630 Sync.Collection DEBUG POST fail 400 https://phx-sync542.services.mozilla.com/1.1/holygoat/storage/tabs | |
1335468157630 Sync.Engine.Tabs DEBUG Uploading records failed: <h2>Client sent a bad request.</h2> | |
1335468157630 Sync.SyncScheduler TRACE Handling weave:engine:sync:error | |
1335468157630 Sync.ErrorHandler TRACE Handling weave:engine:sync:error | |
1335468157631 Sync.Status DEBUG Status for engine tabs: error.engine.reason.record_upload_fail | |
1335468157631 Sync.Status DEBUG Status.service: success.status_ok => error.sync.failed_partial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
04-12 10:19:27.010: I/DEBUG(222): pid: 2441, tid: 2446 >>> org.mozilla.gecko.PasswordsProvider <<< | |
04-12 10:19:32.440: W/SynchronizerSession(2388): at org.mozilla.gecko.sync.repositories.android.PasswordsRepositorySession.insert(PasswordsRepositorySession.java:448) | |
04-12 10:19:32.440: W/SynchronizerSession(2388): at org.mozilla.gecko.sync.repositories.android.PasswordsRepositorySession$5.run(PasswordsRepositorySession.java:342) | |
04-12 10:19:32.440: I/ActivityManager(289): Process org.mozilla.gecko.PasswordsProvider (pid 2441) has died. | |
04-12 10:19:32.440: I/ActivityManager(289): Kill org.mozilla.fennec (pid 2388): provider org.mozilla.fennec.db.PasswordsProvider in dying process org.mozilla.gecko.PasswordsProvider | |
04-12 10:20:27.470: I/GlobalSession(2471): Running next stage syncPasswords (org.mozilla.gecko.sync.stage.PasswordsServerSyncStage@4083b9a0)... | |
04-12 10:20:27.490: I/ActivityManager(289): Start proc org.mozilla.gecko.PasswordsProvider for content provider org.mozilla.fennec/.db.Passwor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PSEUDOCODE! Need to join the subquery to get the values available for the update. | |
UPDATE history SET visits = total | |
modified = latest | |
deleted = (modified <> latest) | |
WHERE uri IN ( | |
SELECT uri, count(uri), SUM(visits) AS total, MAX(modified) AS latest | |
GROUP BY uri | |
HAVING count(uri) > 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HG changeset patch | |
# Parent b87f9cc3ae84219b7de6af73b9ca10403512772d | |
# User Richard Newman <[email protected]> | |
Bug 740326 - Fix over-long log tag. | |
diff --git a/mobile/android/base/sync/net/SyncStorageRequest.java b/mobile/android/base/sync/net/SyncStorageRequest.java | |
--- a/mobile/android/base/sync/net/SyncStorageRequest.java | |
+++ b/mobile/android/base/sync/net/SyncStorageRequest.java | |
@@ -77,17 +77,17 @@ public class SyncStorageRequest implemen | |
this.resourceDelegate = this.makeResourceDelegate(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for x in CollectionKeys \ | |
Command \ | |
DelayedWorkTracker \ | |
GlobalSession \ | |
InfoCollections \ | |
JPakeCrypto \ | |
JPakeRequest \ | |
SyncJPakeStage \ | |
MetaGlobal \ | |
MiddlewareSession \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Components.utils.import("resource://services-sync/main.js"); | |
Components.utils.import("resource://services-sync/engines/clients.js"); | |
Components.utils.import("resource://services-sync/resource.js"); | |
function getClient() { | |
let r = new Resource(Weave.Service.storageURL + "clients/" + Clients.localID); | |
return r.get(); | |
} | |
let ts = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Components.utils.import("resource://services-sync/main.js"); | |
Components.utils.import("resource://services-sync/rest.js"); | |
function clearClients() { | |
let r = new RESTRequest(Weave.Service.storageURL + "clients"); | |
r.setHeader("X-Confirm-Delete", "1"); | |
r.delete(); | |
} | |
clearClients(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From https://ci.mozilla.org/job/sync-android/171/consoleFull | |
SyncClientsEngineStage :: DEBUG: Uploading client record UTVi9VEr0LXp | |
BaseResource :: DEBUG: HTTP PUT http://localhost:15325/1.1/john/storage/clients/UTVi9VEr0LXp | |
BaseResource :: TRACE: Adding Basic Auth header. | |
SyncConfiguration :: DEBUG: Returning prefs for null | |
ClientUploadDelegate :: INFO: Client upload error. Aborting sync. | |
GlobalSession :: WARN: Aborting sync: Client upload failed. | |
SyncConfiguration :: DEBUG: Returning prefs for null | |
GlobalSession :: INFO: GlobalSession initialized with bundle null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATED: | |
-- Obviously select something more useful than favicon_url, which will always be null. | |
SELECT bid, url, title, visits, hid, i.favicon_url AS favicon_url | |
FROM | |
( | |
-- Bookmarks without history. | |
SELECT b._id AS bid, b.url AS url, b.title AS title, -1 AS visits, -1 AS hid | |
FROM bookmarks b | |
WHERE b.folder = 0 AND b.url NOT IN (SELECT url FROM history) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1331367079.48: {id:"7JLnOIfoVqzC", type:"bookmark", title:"Getting Started", parentName:"Bookmarks Toolbar", bmkUri:"http://www.mozilla.com/en-US/firefox/central/", tags:[], keyword:null, description:null, loadInSidebar:false, parentid:"toolbar"} | |
1331367079.48: {id:"CmxPKUsOViAm", type:"query", queryId:"RecentlyBookmarked", title:"Recently Bookmarked", parentName:"Bookmarks Menu", bmkUri:"place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&queryType=1&sort=12&maxResults=10&excludeQueries=1", tags:[], keyword:null, description:null, loadInSidebar:false, parentid:"menu"} | |
1331367079.48: {id:"XQOZVUA21FpS", type:"bookmark", title:"Customize Firefox", parentName:"Mozilla Firefox", bmkUri:"http://www.mozilla.com/en-US/firefox/customize/", tags:[], keyword:null, description:null, loadInSidebar:false, parentid:"Rh3DElws6CrW"} | |
1331367079.48: {id:"YBtokzk3UMOi", type:"query", queryId:"MostVisited", title:"Most Visited", parentName:"Bookmarks Toolbar", bmkUri:"place:redirectsMode=2&sort=8&maxResults=10", |