Граф коммитов

1429 Коммитов

Автор SHA1 Сообщение Дата
Edward Lee 3acf0af190 Use a shared setGUID for new items and changing guids so that the item always ends up with the GUID (because conflicts shouldn't have been Weave generated). 2009-08-15 01:04:06 -07:00
Edward Lee b01244308b Store the parent GUID as an annotation if the item is missing a parent and share some parent lookup code. 2009-08-15 01:00:46 -07:00
Edward Lee 367213495f Move _preprocess to before applyIncoming to share code for create/update/remove. 2009-08-15 01:00:32 -07:00
Edward Lee af37c0bc61 Rename weaveId to just GUID and share a id<->guid function across store and tracker. 2009-08-15 00:59:49 -07:00
Edward Lee ac3e6b761e Temporarily append everything and don't use sortindex for ordering within a folder. 2009-08-15 00:57:09 -07:00
Edward Lee 783223115f Get rid of depth and sort on index instead. 2009-08-15 00:56:27 -07:00
Edward Lee 5f6b7af2ff Remove meta/mini records. Bye! 2009-08-13 18:50:54 -07:00
Edward Lee b2bd7b5d10 Put Annotations in Svc and expose a get/set Utils.anno call to use from bookmarks. 2009-08-13 17:59:26 -07:00
Edward Lee 218cdffe7f Remove unused bookmark annotations/constants. 2009-08-13 17:43:20 -07:00
Edward Lee bea7925a6b Bug 510152 - Check for failure onStopRequest and throw the error for extra debugging
Wrap the error code with a JS Error to track the stack, and re-wrap it to get the full stack trace. Also, remove args for __request for the stack because it's sometimes the whole record..
2009-08-12 20:28:46 -07:00
Anant Narayanan 6bcc62c1dc Ask for password/passphrase before changing it (bug #507434) 2009-08-11 11:22:13 -07:00
Edward Lee c68e2d8159 Bug 507691 - Server responds with json decode failure for fat unicode characters
Make sure we generate ASCII data for upload by escaping on serialize and unescaping on deserialize. Test to make sure serialized data is ASCII and the original records aren't modified by serialize.
2009-08-06 11:28:33 -07:00
Edward Lee a77e420a8a Bug 507296 - Sync bookmarks and history in batched mode. r=thunder
Wrap the original SyncEngine._sync function with a call to runInBatchMode, so SQL disk writes happen at the end of batch mode instead of on every change.
2009-07-30 11:52:26 -07:00
Anant Narayanan 96db27a500 WinCE crypto binary (bug #487171) 2009-07-28 17:14:52 -07:00
Anant Narayanan 0470244603 Backed out changeset 9e8936813ae1 2009-07-28 17:13:15 -07:00
Anant Narayanan d014c20001 WinCE crypto binary 2009-07-28 16:54:24 -07:00
Anant Narayanan f3887dcd50 Re-structure window utils 2009-07-28 14:30:32 -07:00
Edward Lee 8c9e2af36c Change client engine to override findLikeId instead of recordLike to save on some work (iterating over changed ids). 2009-07-28 10:07:07 -07:00
Edward Lee b0e99b50a1 Bug 506795 - Handle adding duplicate logins. r=thunder
Refactor reconcile to call findLikeId that by default will look for recordLike in the outgoing queue as it does now. Override findLikeId for password engine to search local logins.
2009-07-28 10:06:02 -07:00
Edward Lee dc5086b560 Generate SunOS x86 binaries and put them under platform/SunOS because the contrib Firefox builds are SunOS_x86-sunc while we build SunOS_x86-cc. 2009-07-26 02:55:38 -07:00
Edward Lee c352d7c2db Add i86pc machine detection for crypto Makefile. Add SunOS for test Makefiles. 2009-07-26 02:55:38 -07:00
Gary Gendel 54a521ac84 Bug 501630 - OpenSolaris x86 support
Add SunOS for crypto Makefile to build a dynamic shared library.
2009-07-24 21:16:59 -07:00
Edward Lee 0658441e64 Bug 506302 - Shorten stack traces
Trim the full path from JS stacks and just show the file and convert nsIException traces to look like js stacks: func()@file:line. Only difference is js stacks show arguments while nsIException always shows just (). Fix up some places where we print the exception instead of the fixed up string.
2009-07-24 15:28:42 -07:00
Edward Lee afca7c787c Bug 506091 - New binary needed for Maemo devices
Rebuild Linux_arm-gcc3 (maemo) WeaveCrypto.so binary.
2009-07-23 23:05:24 -07:00
Anant Narayanan 38c74f2d92 Remove useless check for crypto methods 2009-07-23 17:12:32 -07:00
Anant Narayanan 2404b54528 Fix verifyPassphrase for cases when the key actually exits :-/ 2009-07-23 17:01:58 -07:00
Anant Narayanan d21d79620b Fix verifyPassphrase returning false on first login 2009-07-23 16:52:28 -07:00
Edward Lee c1fd17eceb Bug 505940 - Unnecessarily uploading records on first sync
Remove short-circuit logic of comparing number of keys for deepEquals and iterate through each key on both objects to make sure both have the same value.
2009-07-22 23:49:15 -07:00
Edward Lee 6293c974de Convert various debug messages to trace. 2009-07-22 21:40:18 -07:00
Mike Connor 2947c8e012 bug 497938 - Client should back off server when it is busy, r=edilee
--HG--
extra : rebase_source : 347137310b0ff0bba8b5267632259645c516e56b
2009-07-22 23:48:41 -04:00
Edward Lee da26bc9eee Bug 504788 - Handle different weave versions by wiping, upgrading, updating. r=thunder
Store the most newest Weave version on the server and update it if necessary on each remoteSetup. Make a concept of a compatible version where this version of Weave can read but might change records with its full sync.

--HG--
extra : rebase_source : c11cada1e3ba07e00113fca439610d0b6fd78190
2009-07-22 18:49:07 -07:00
Dan Mills 54314c829e Bug 505906: Don't do a last POST if there is nothing left to send. Regression from bug 481347. r=mardak 2009-07-22 17:48:47 -07:00
Edward Lee ac355ae207 Bug 485573 - Fennec runs out of memory and crashes if too many history items to sync. r=thunder
Incrementally process records as the collection finds record boundaries and converts them to records for the engine to use. Get rid of the collection iterator and original RecordParser. Add tests for incremental record parsing and remove old iter tests.
2009-07-22 16:38:34 -07:00
Anant Narayanan 743e4ae823 Crypto binary for Linux_x86-64
--HG--
extra : rebase_source : ca27677a6fb08524f60e4a4ebae6fa338f5fd057
2009-07-22 16:33:50 -07:00
Dan Mills 2ae7b86523 merge upstream changes 2009-07-22 16:26:53 -07:00
Anant Narayanan d9687953fd Crypto binary for Windows 2009-07-22 16:22:08 -07:00
Dan Mills ddefe825fc Bug 481347: Split uploads into multiple chunks to get around server upload limit and curtail memory usage 2009-07-22 16:21:33 -07:00
Anant Narayanan e041769fd8 Crypto binary for Linux_x86 2009-07-22 15:30:16 -07:00
Anant Narayanan 877fdf255f Verify passphrase on login (bug 505571) 2009-07-21 21:05:23 -07:00
Anant Narayanan 3fa5212903 Make change password work (bug 505570) 2009-07-21 20:59:02 -07:00
Anant Narayanan 454a197d48 Add ability to change passphrase (and merge XUL files) bug #443696 2009-07-21 16:54:46 -07:00
Anant Narayanan 26a5b6bd9b Expose rewrapPrivateKey & verifyPassphrase (bug #505401) 2009-07-21 15:02:30 -07:00
Anant Narayanan b918b19130 Merge with backed out changeset 2009-07-21 14:33:26 -07:00
Anant Narayanan 5ccbee5ebe Backed out changeset 5768a19f21d3 (crypto review not done yet) 2009-07-21 14:32:57 -07:00
Anant Narayanan d81a63e89a Reset passphrase code + UI (bug #443696)
--HG--
extra : rebase_source : 4905bf56bf8efc90b49f99f56603a93908efdd63
2009-07-21 14:31:16 -07:00
Anant Narayanan 98dab3d018 Crypto changes
--HG--
extra : rebase_source : 0a953a43c01b95e7c467ec4ca7feeb0aaa00f5e1
2009-07-21 11:18:29 -07:00
Daniel Holbert f7af52933f Bug 502293: Fix a string so that Weave will *actually* display error messages, instead of showing a percent sign. r=thunder 2009-07-21 12:35:12 -07:00
Edward Lee 39f903ac1b Bug 504256 - sync should observe idle service and only sync when the user is idle
Detect if the user has been recently active, and if so, skip the sync. Arbitrarily picking 30 seconds for now.
2009-07-17 16:55:15 -07:00
Edward Lee 8b6ee7ab29 Bug 504389 - Don't automatically sync after clicking on wipe server
Remove description reference to automatically sending local data.
2009-07-17 12:23:03 -07:00
Edward Lee ac496a8ff4 Bug 504387 - Cache keys after creating/PUTting them instead of after GETting. r=thunder
Set the record manager for CryptoMetas, PubKeys, PrivKeys after uploading keys.
2009-07-16 23:13:58 -07:00