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

2780 Коммитов

Автор SHA1 Сообщение Дата
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 25d2cb8e20 Merged changes 2008-05-30 11:11:02 -07:00
Atul Varma 257f9281de Refactored logging system so that clients don't need to call factory functions to create specific instances of formatters and appenders. 2008-05-29 18:15:50 -07:00
Atul Varma 18c29c94bb Added a testing suite for log4moz, along w/ a few refactorings necessary to perform the tests. 2008-05-29 17:56:52 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 2b44909578 Merged 2008-05-29 11:18:16 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local f27f36243a Moved the Share Bookmarks item out of the Weave popup menu into the Bookmarks menu, folder submenu. 2008-05-29 11:17:54 -07:00
Dan Mills 5476cb0994 Add and start using an object to represent a remote resource (file), and a server object to hold them. Resources will attempt to retry network operations if they fail. 2008-05-28 20:11:39 -07:00
Atul Varma b40f447c6d Added a trivial fault tolerance JS module with a trivial test suite. 2008-05-28 11:25:28 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 60dbf91bf5 Created a cookie tracker in trackers.js, and a test for it in tests/unit/test_cookie_store.js. 2008-05-27 09:44:26 -07:00
Dan Mills f7d85070fe bump version constant 2008-05-24 18:56:42 -07:00
Dan Mills 9316037c2c remove some debugging output, fix some remaining array detection code 2008-05-24 17:30:22 -07:00
Dan Mills 38997acef8 continue sync of other engines even after one of them throws an exception; use constructor name instead of instanceof to check for array object in modules 2008-05-23 23:58:53 -07:00
Dan Mills b91391acd5 don't attempt to get a symkey if encryption is set to 'none' 2008-05-23 19:57:38 -07:00
Dan Mills f84508aeb7 regenerate the engine id when the engine's pbe id changes 2008-05-23 19:47:25 -07:00
Dan Mills 5d11c540ba branch merge 2008-05-23 17:58:08 -07:00
Dan Mills f5ca315694 merge 2008-05-23 17:52:10 -07:00
Dan Mills 1e832d7175 whitespace police 2008-05-23 17:50:54 -07:00
Dan Mills e9df121cfb don't require same index for folder 'likeness' 2008-05-23 17:50:24 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 5fa21e0f59 Added unit test file for CookieStore. It has a test to make sure that only persistent cookies are wrapped, not session cookies. 2008-05-23 17:49:58 -07:00
Atul Varma 19c389565a Fixed bug 427113: https://bugzilla.mozilla.org/show_bug.cgi?id=427113
I should note that I think that there's a more idiomatic way of doing what I did, but I don't yet fully understand how Weave does things asynchronously.  As such, this commit can probably be refactored to be more in the style of the surrounding code.
2008-05-23 12:22:08 -07:00
Atul Varma 6b81299bdb Fixed bug 435103 (https://bugzilla.mozilla.org/show_bug.cgi?id=435103) 2008-05-23 12:08:03 -07:00
Atul Varma dcd1221ca9 Routine merge of double branches. 2008-05-23 11:06:45 -07:00
Atul Varma 2802dad13d Fixed a variety of style issues and minor warnings raised by js2-mode. 2008-05-23 11:05:42 -07:00
Anant Narayanan bcd73659a0 Correct more syntax errors (super) in trackers.js 2008-05-23 11:01:32 -07:00
Anant Narayanan 33f18499e5 Correct syntax error in trackers.js 2008-05-23 10:28:43 -07:00
Anant Narayanan 1fbd5a324f Fix indentation 2008-05-23 09:59:35 -07:00
Anant Narayanan ad7543aee8 Add tracking support to FormsEngine. Bug #435319, r=thunder 2008-05-23 09:29:26 -07:00
Dan Mills f5737a39d9 fix build regression in windows from linux fixes 2008-05-22 18:52:52 -07:00
Anant Narayanan 5c0774bdea Tracking support for HistoryEngine. Bug #435321, r=thunder 2008-05-22 18:37:24 -07:00
Anant Narayanan ac3513379f Correct typo in BookmarksTracker 2008-05-22 18:06:47 -07:00
chris@h-124.office.mozilla.org 3ac50cdcaf resolving merge conflicts 2008-05-22 16:52:51 -07:00
chris@h-124.office.mozilla.org 1864c40666 replacing minefield logo with weave logo 2008-05-22 16:04:56 -07:00
Anant Narayanan 1c421141bc Add support for engine 'scores'. Bug #434812, r=thunder 2008-05-22 15:58:29 -07:00
Anant Narayanan af655d694e Sync form data: bug #434818, r=thunder 2008-05-22 15:36:44 -07:00
chris@h-124.office.mozilla.org 97b0a93749 cleaning up strings in sync prefs 2008-05-22 14:15:35 -07:00
Atul Varma 1880deb3c3 Changeset c5a909fd128d (r336 on hg.mozilla.org) seems to have broken the OS X build, because there is no xpcom_core library on OS X, so I've modified the Makefile so that the library is only included if we're on Linux. I'm not sure what this will do for Windows builds, though, so it may break the build on Windows. 2008-05-22 11:44:51 -07:00
Dietrich Ayala 12f3dcc427 Bug 419121 - Weave chokes on microsummaries (r=thunder) 2008-05-22 11:41:05 -07:00
Justin Dolske 08b62ce1ba Bug 433762 – Sync stored passwords. r=thunder 2008-05-21 18:09:19 -07:00
Justin Dolske 1d7de9c30b Cleanup some trivial nits with cookie (whitespace and function name). 2008-05-21 17:53:35 -07:00
Anant Narayanan dcc4181827 Allow login & sync when encryption is off 2008-05-21 16:28:23 -07:00
Anant Narayanan 071c1cffe8 Typo in log message 2008-05-21 11:16:39 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 50d0db3a9f Merged my changes with Anant's changes 2008-05-20 18:24:49 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 7dc49c82ec Added TODO that expired cookies should be thrown out, in the unlikely event that we get one from a createCommand or editCommand. 2008-05-20 18:24:28 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local cbc91827ec Made cookie-sync sync only persistent cookies, drop single-session cookies. (Needs testing.) 2008-05-20 18:14:18 -07:00
Anant Narayanan c3a2162a6c Patching to support building component on Linux. 2008-05-20 16:53:14 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 43ab447e8a Created some documentation of how to add synchronization functionality for a new user data type to Weave. Created a new directory called docs to put this into. 2008-05-19 19:40:45 -07:00
Dan Mills 9c8f71b319 DAV: separate the root url of the DAV repository from the default prefix for all operations (i.e., the user's subdirectory) 2008-05-15 18:08:13 -07:00
Dan Mills a06768ef13 more windows (msvc) build fixes 2008-05-14 17:15:55 -07:00
Dan Mills 0ac923cec9 windows build fixes for crypto component 2008-05-13 18:37:07 -07:00
Dan Mills 5bc6a61d86 temporarily disable xmpp unit test 2008-05-12 10:18:20 -07:00
Dan Mills 1c1fd8fcce merge with jono's changes 2008-05-12 10:14:15 -07:00
Dan Mills 036c817866 sync bookmark descriptions 2008-05-12 10:11:07 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local f42a4eb7c6 Created a readme for using the XMPP client module. 2008-05-08 18:50:12 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local cb3252bd8d Expanded test_xmpp -- currently failing tests but it's got the setup now for timing out and failing if the expected message is not received. 2008-05-07 15:29:42 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 14e111cff4 Made a very simple unit test for xmppClient; it's passing, but currently it connects to the hard-coded URL of a jabber server running on localhost; I'll need to change this if other people are going to be able to run this test. 2008-05-06 13:13:26 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 418cfb5565 renamed testSynchronizer.js to just synchronizer.js, because otherwise the test framework tries to run it as a test itself. 2008-05-06 12:04:04 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 8f6585ff3a Oops, I miscapitalized XmppClient in the export statement -- fixed. 2008-04-30 17:08:39 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 6f9114d384 Made xmppClient, transportLayer, and authenticationLayer into proper modules using Components.Utils. Also renamed the JabberClient class to XMPPClient, which is more accurate (as it implements XMPP which is a newer protocol than Jabber.) 2008-04-30 16:55:34 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 9b50fee839 Gave sasl.js a more descriptive name -- authentication is what it does.
--HG--
rename : services/sync/modules/xmpp/sasl.js => services/sync/modules/xmpp/authenticationLayer.js
2008-04-30 16:29:03 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 96d43325c9 Merged my changes with the main repository. 2008-04-30 16:27:52 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local a7ee9d6de3 First commit of my XMPP client, as demonstrated at the meeting today, to weave/modules. This does not include the test-synchronization stuff. xmppClient.js is the main client class; transportLayer.js and sasl.js (which does authentication) are the helper classes. 2008-04-30 16:27:32 -07:00
Dan Mills e8ea45e9de add a simple unit test harness based on xpcshell; add two tests for PBE and to load all the modules; add some hacks to the component's makefile to make tests work correctly 2008-04-30 13:01:17 -07:00
Dan Mills 3184c97820 add a c++ crypto component, ported from bug 400742; with a specialized makefile to build in the extension (with the gecko sdk) 2008-04-25 18:28:31 -07:00
Dan Mills 1b281e0bfe service: remove accidental 'resetServer' call in sync (\!); dav: lock a file called 'lock', instead of the entire collection (workaround for bug 421610) 2008-04-16 14:46:57 -07:00
Dan Mills 9a24767ab7 engines now get the pbe identity directly from the identity manager; engines now know their 'enabled' status (pref); main service syncs *all* registered (enabled) engines 2008-04-15 17:21:34 -07:00
Dan Mills 1fa3e135bc add engine registration service; use global id service in service.js 2008-04-14 18:53:35 -07:00
Dan Mills 017524a4d0 Various improvements:
* async generators: much better stack traces
* dav: use global identity system rather than login/logout to manage
  usernames and passwords.
* dav: there is a checkLogin() instead of login() which can be used to
  verify auth at any time.
* dav: make it so that we can (only internally atm) hold multiple
  locks for different URLs.
* identity: add an identity manager singleton service to keep
  identities globally, referenced by a name, with aliasing support (so
  e.g., dav can ask for the 'dav' identity, while something else can
  alias 'dav' to another identity).
* service: keep track of logged in status here, rather than in the dav
  service.  Use the global id manager.
2008-04-10 21:38:15 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local ebed002936 Implemented cookieStore.editCommand(). 2008-04-07 11:53:55 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 64ad0b98fa Semicolon was missing in cookieStore.wrap() 2008-04-04 12:09:04 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 162b86b36f Prettied up my code by using block comments and making my indents 2 spaces. 2008-04-04 12:08:04 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 8313850210 Merged changes from Dan 2008-04-04 10:50:21 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 304fa26587 Removed comment from load-weave.js that I put in while debugging and committed by accident. 2008-04-04 10:49:41 -07:00
Dan Mills 3008a07ee0 rethrow exception when applyCommands fails; merge changes from jono 2008-04-03 17:18:38 -07:00
Dan Mills 641c1bbc04 rethrow exception when applyCommands fails 2008-04-03 17:16:22 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 8507db265b Discovered that trying to use duck-typing in passing an object into cookieExists() will hard-crash Firefox, and figured out why; added comment to syncCores.js explaining this. 2008-04-03 14:30:34 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local dc5e6d89c9 Fixed bugs in cookieSyncCore.itemExists and cookieStore.addCommand. The problem in addCommand was just a missing argument, but in itemExists I had to change the implementation to use cookieManager.enumerator rather than cookieManager.findMatchingCookie -- the latter function apparently does not exist in the nsICookieManager2 interface despite what MDC says about it. 2008-04-03 14:26:06 -07:00
Dan Mills ecd1ab657d don't fail on invalid server deltas which don't apply to the local snapshot; wipe the local snapshot instead 2008-04-02 00:00:24 -07:00
Dan Mills 22b777ce83 bump version 2008-04-01 23:44:39 -07:00
Dan Mills c59e0aba36 make login more robust, specially work around first-login oddities with services.m.c 2008-04-01 23:43:14 -07:00
jono@jono-gibbon-laptop a9e9bdb38e Updated the comment in CookieStore.editCommand. 2008-04-01 19:16:27 -07:00
jono@jono-gibbon-laptop dab32afc55 Removed some lines that were only in there for debugging purposes. 2008-04-01 19:12:03 -07:00
jono@jono-gibbon-laptop 6c13165436 Fixed some minor errors in cookieStore / cookieSyncCore (still getting used to the getter idiom in javascript -- had too many underscores). Syncing cookies now works in as much as it can upload all cookies to the server without raising any exceptions; now to see if it can download and merge cookies on the other side... 2008-04-01 17:51:10 -07:00
jono@jono-gibbon-laptop bc2b54e0cd Fixed a couple of missing symbol exports that were stopping CookieEngine from being able to be instantiated. 2008-04-01 17:32:14 -07:00
jono@jono-gibbon-laptop 5d62b467ca Fixed a couple of syntax errors that were preventing weave from starting 2008-04-01 16:36:08 -07:00
jono@jono-gibbon-laptop b70fbb03c2 Merged changes and resolved conflicts between my cookie stuff and r282. 2008-04-01 14:46:29 -07:00
Dan Mills 95d8146ce0 bump version 2008-03-31 17:46:29 -07:00
Dan Mills 94392ccf5d fix tag sync 2008-03-31 17:07:40 -07:00
Dan Mills 59f22614e0 hide share bookmarks menu item; clean up ui init code 2008-03-31 16:55:54 -07:00
Dan Mills 5b6863627e add warnings to reset client/server data buttons in the prefs 2008-03-31 16:24:43 -07:00
Dan Mills eb446df148 [mostly] beat login dialog into submission; use DAV singleton instead of making a new DAVCollection in service.js; split up checks from login into their own functions, call them on sync(); check we are logged in before syncing 2008-03-31 07:20:09 -07:00
Dan Mills c5ddd41680 bump storage format version to cause a server wipe 2008-03-30 08:52:49 -07:00
Dan Mills 9b6f850e27 bump version 2008-03-30 08:42:35 -07:00
Dan Mills 6726d4d1c1 use the wrapper notifier for login(), change observers to the slightly different observer topics; allow server url to not have a trailing slash (add one automatically); dial down dav.js verbosity; add serverWipe service method; change 'reset server data' button in prefs pane to do serverWipe instead of resetServer; allow for wrappers to have extra args both saved in the closure (at wrap creation time) as well as passed in later (via .async()) 2008-03-30 08:40:23 -07:00
Dan Mills bd57ab6275 remove try/catch block in the reconciler; correctly fix parent guids of remove commands during guid changes; only allow guid changes for create commands 2008-03-30 03:36:25 -07:00
Dan Mills 6199cc68e3 show 'sync now' menuitem by default 2008-03-29 00:22:28 -07:00
Dan Mills 028835fd5e fix the bookmarks likeness comparator (a.data undefined bug) 2008-03-29 00:00:16 -07:00
Dan Mills 86caf96468 ignore 'type' properties in edit commands; fix history sync 2008-03-28 22:55:23 -07:00
Dan Mills 5ec2b83320 fix 'clear logs' on windows 2008-03-28 19:36:11 -07:00
Dan Mills 012d0d35d3 bump version 2008-03-28 03:27:05 -07:00
Dan Mills 26713b0184 add status notification to sharing dialog; fix async generators in the case where an async method is missing a yield (better error, continue execution in parent); add guts of demo sharing code to engine & store (for bookmarks, with some spillage) 2008-03-28 03:25:51 -07:00
Dan Mills 38ed71b0a2 status label now has service status instead of username; service [un]lock observer notifications are gone; don't error when async methods don't call done() - consider them methods with no return value; don't require passing null into login() to cause the identity to look up the password in the pw mgr; make some wrapper 'method generators' to make lock handling and observer notification simpler 2008-03-27 19:12:53 -07:00
Dan Mills 152ac86226 add a 'clear logs' button to the log window 2008-03-27 01:05:21 -07:00
Dan Mills 59cadd43f4 tweak logging defaults; add a hidden pref to make the 'sync now' menu option visible again 2008-03-27 00:36:50 -07:00
Dan Mills d671b0ce51 remove old '500 error' hack for services.m.c during mkcol; fix applyCommands to do async right & make a listener correctly 2008-03-26 23:51:01 -07:00
Dan Mills 255bfe18ef make XHRs non-blocking again; change sharing dialog so sharing is done without closing the dialog (still lacks any feedback though) 2008-03-26 23:22:35 -07:00
Dan Mills 595423713c fix typo 2008-03-26 23:12:58 -07:00
Dan Mills 332279d554 make applyCommands asynchronous 2008-03-26 23:11:15 -07:00
Dan Mills a7291a69bd improve async generator logging; don't call done() on StopIteration when we already have a timer set (it means the generator just 'bottomed out' after calling done()); make XHRs be synchronous (blocking) - temporarily; fix up sharing code (adding to the keyring) 2008-03-26 00:59:34 -07:00
Dan Mills 4bbd3af126 add sharing ui+backend code (not working yet); make engines less chatty when applying commands 2008-03-25 23:01:34 -07:00
Dan Mills 89a59249b4 make service.js the main entry point from chrome/content; make the service be lazy-loaded; make crypto be lazy-loaded 2008-03-25 15:14:00 -07:00
Dan Mills 49d0c55031 lazy-load service 2008-03-25 13:55:34 -07:00
Dan Mills 7b07d8bc8e work with all exception objects, whether we can modify them or not 2008-03-24 19:08:43 -07:00
Dan Mills d43f7f0db3 bump version 2008-03-24 16:05:02 -07:00
Dan Mills 07453392ca decrypt private rsa keys before decrypting data with it (rather than doing it in one step). fix for windows openssl.exe 2008-03-24 16:04:29 -07:00
Dan Mills ea7fa06dd8 bump version; bump storage format version 2008-03-21 16:07:44 -07:00
Dan Mills 254b85afef fix resetClient's locking. change bookmarks wrap format to have hardcoded guids for the 3 roots (menu, toolbar, unfiled) rather than random ones. 2008-03-21 15:56:41 -07:00
Dan Mills 6af85fdce1 bump version 2008-03-20 14:59:59 -07:00
Dan Mills c55b325521 bookmarks syncCore: remove actions never qualify for 'likeness' 2008-03-20 14:59:20 -07:00
Dan Mills 1908175a9c split up/simplify login functions; add a global (server-wide) storage version; wipe server for storage version upgrades 2008-03-19 18:42:12 -07:00
Dan Mills 8613bae127 bump version 2008-03-19 17:31:45 -07:00
Dan Mills d55f8969ad bookmarks sync core: always include type information when generating commands. also, allow for properties to not be set when comparing commands for likeness. 2008-03-19 17:31:00 -07:00
Dan Mills 384d06b7c6 Various improvements:
* Logging improvements / default log levels tweaked.  Less chatty now.
  Ability to tweak log levels of individual loggers via prefs.
* Various crypto module fixes, specially for RSA.
* 'service' lock removed, reuses server lock now.  dav module supports
  temporarily blocking locks to simulate the 'service' lock (login()
  needs this, since dav is not configured at that time).
* PKI support: data encryption uses randomly-generated symmetric keys,
  which are then encrypted with RSA public keys and stored on the
  server.
2008-03-19 15:17:04 -07:00
Dan Mills 7077b3f6d5 bump version 2008-03-12 23:07:04 -07:00
Dan Mills 4fd10f52ed workaround for services.m.c 500 error on some GET requests 2008-03-12 23:06:28 -07:00
jono@jono-gibbon-laptop 6ee09339fc Merged my changes with the changes to async.js -- no conflicts. 2008-03-11 14:59:06 -05:00
thunder@h-132.office.mozilla.org a31ac97660 add missing async.js module 2008-03-11 11:47:54 -07:00
jono@jono-gibbon-laptop f87939266d My changes to weave to enable cookie synchronization. So far untested and still missing a thing or two. 2008-03-11 12:08:38 -05:00
Dan Mills 0b431a8016 fix full (first) upload brokenness 2008-03-07 04:49:56 -08:00
Dan Mills 056dc3d2eb add a dav method for getting a list of server files/directories; delete all server data when private key isn't found (this will cause everyone's server data to get wiped, since no one has a key yet); fix a bug in checkStatus with specific status codes (as opposed to ranges) 2008-03-07 04:20:55 -08:00
Dan Mills 67b2693549 version bump 2008-03-07 01:57:18 -08:00
Dan Mills 99333d3c98 Asynchronous generator helpers rework + PKI work
* Async helpers are in a module of their own now
* Async routines have simpler semantics now.  onComplete handlers are taken care of by the helpers.  Exceptions are bubbled up across nested asynchronous generators
* Stack traces are automatically logged for unhandled exceptions
* Async generators are now allowed to 'bottom out' (StopIteration is ignored) - this is configurable.
* RSA key generation fixes
* On login we now create an RSA keypair, encrypt the private one with PBE, and upload them to the server
* Log files are now limited to 2MB (down from 5)
2008-03-07 01:56:36 -08:00
Dan Mills ad5f58d76e don't sync bookmarks/history unless they have been enabled 2008-03-05 18:36:58 -08:00
Dan Mills 2026c141ba ignore broken local snapshots if they can't be parsed; trigger an initial sync instead 2008-03-05 17:11:08 -08:00
Dan Mills 019a0c8e6c switch to nsIJSON for JSON parsing and output. add a deepCopy function instead of using eval(uneval()). make *sure* to read and write UTF-8 to files. bump version 2008-03-05 00:00:56 -08:00
Dan Mills 9b83d920fa fix openssl args mangling 2008-02-19 21:01:11 -08:00
Dan Mills e4d6f08edb version bump 2008-02-19 20:53:45 -08:00
Dan Mills 597fef2a0e use a scriptableinputstream to correctly read openssl output 2008-02-19 20:53:01 -08:00
Dan Mills e5769661ad flesh out openssl code; still needs more work 2008-02-19 11:39:39 -08:00
thunder@h-132.office.mozilla.org 387df3fa4b move openssl() into crypto object so it can use the logger there. up version 2008-02-18 11:18:04 -08:00
Dan Mills b5fa263db3 clean up prefs; add logging prefs; check weave is enabled on scheduled sync 2008-02-13 16:07:11 -08:00
Dan Mills 907f537607 put utility functions in an object to avoid namespace pollution 2008-02-13 14:30:44 -08:00
Dan Mills e81f3184d4 create user directories when they don't exist - good for personal webdav servers 2008-02-08 01:03:45 -08:00
Dan Mills 03772aea77 fix openssl binary path on windows 2008-02-05 16:15:43 -08:00
Dan Mills 443bd4253f branch merge 2008-02-05 14:16:38 -08:00
Dan Mills 58454da1d0 add openssl support 2008-02-05 14:15:53 -08:00
Myk Melez 6b878bc9b1 make log4moz not depend on constants.js so it's easier to reuse it in another project 2008-01-24 17:41:36 -08:00
Dan Mills 962a1a30a6 remove obsolete xpcom component code 2008-01-23 15:35:11 -08:00
Dan Mills afc2ac4888 bump version 2008-01-22 22:46:39 -08:00
Dan Mills 66f5b8324c Bug 411105: nsILoginInfo no longer accepts null values for usernameField/passwordField. Send empty strings instead 2008-01-22 22:46:07 -08:00
Dan Mills 891a9f46f0 bump version 2008-01-07 20:20:54 -08:00
Dan Mills 4bc03daf56 bump version 2008-01-07 16:29:30 -08:00
Dan Mills 3bee96c342 load all modules directly from load-weave.js to get around bug 408412; fix uses of |let| not directly within a block 2008-01-07 16:28:57 -08:00
Dan Mills c5cd811a52 bump version in constants.js 2007-12-28 16:34:28 -08:00
Dan Mills 61d662a743 Bug 409908: don't decrypt cleartext. Also, fix broken checkStatus calls when resetting server data. 2007-12-28 16:33:09 -08:00
Dan Mills ccb5d633dc move xxxtea.js -> xxtea.js (typo) 2007-12-27 12:50:51 -08:00
Dan Mills 74fa881759 Make {en,de}cryption asynchronous so as to not block the UI; fix 'xxxtea' typos (it's xxtea); fix auth header suppression 2007-12-26 17:40:46 -08:00
Dan Mills 4712164e73 remove debug statements 2007-12-26 16:11:19 -08:00
Dan Mills bf099ed106 Pull xxxtea code into modules/; fix passphrase bug in the login dialog 2007-12-26 16:10:23 -08:00
Dan Mills c3399d64d7 Bug 409601: Ask for an email instead of a username (since Weave usernames are email addresses) 2007-12-26 14:56:52 -08:00
Dan Mills 258dcf0e8d Fix typo in last commit; use asterisks in place of auth header 2007-12-26 14:51:52 -08:00
Dan Mills 2355ae3aa7 Bug 409673: Don't log the authentication header 2007-12-26 14:49:03 -08:00
thunder@daniel-millss-macbook-pro-15.local ffe5f4241e fix getTagsForURI call (API changed); bump version 2007-12-24 14:47:37 -08:00
Dan Mills bcae2e86b5 version bump 2007-12-21 18:38:04 -08:00
Dan Mills f2c9cee5f7 alert errors when the passphrase is empty 2007-12-21 18:05:01 -08:00
Myk Melez adcef64d74 clean up preferences XUL and make Create Account button work on Windows and Linux 2007-12-21 17:41:26 -08:00
Dan Mills a27d088f83 version bump 2007-12-21 16:51:14 -08:00
Dan Mills 3f538ad689 process GUID changes *before* anything else 2007-12-21 16:50:32 -08:00
Dan Mills c99138171c limit history sync to the last 500 items; load snapshots from the right directory in the profile 2007-12-21 16:07:42 -08:00
cbeard@Macintosh.local b711a57bc5 refactoring of the setup wizard, fix for opening prefs pane to weave pane regardless of previous state 2007-12-21 15:08:47 -08:00
cbeard@Macintosh.local 859989b602 UI clean up and refactoring 2007-12-21 13:34:43 -08:00
Myk Melez 69b10503c7 make prefpane localizable 2007-12-21 01:09:08 -08:00
Myk Melez 9ec31319f5 make login dialog localizable 2007-12-21 00:29:54 -08:00
Myk Melez a228e4f7f2 make log dialog localizable 2007-12-21 00:11:50 -08:00
Myk Melez 9c4ba9d590 make wizard localizable 2007-12-20 23:31:29 -08:00
Myk Melez 901cc2f116 make the browser overlay (sync.xul) localized and localizable 2007-12-20 17:19:36 -08:00
cbeard@Macintosh.local bf01473592 merging 2007-12-20 15:44:49 -08:00
cbeard@Macintosh.local 9c6f02941b sorry about the tabs! lots of refactoring of the UI bits 2007-12-20 15:43:18 -08:00
Dan Mills 0048d3e289 implement firstrun/updated pages 2007-12-20 15:35:19 -08:00
Dan Mills 46c7fac398 change prefs to live under extensions.weave 2007-12-20 14:46:12 -08:00
Dan Mills af405adc38 ui / prefs fixes 2007-12-20 12:18:41 -08:00
Dan Mills b957c13f7d move logs and snapshots into a 'weave' directory in the profile; use .txt filenames for logs to (hopefully) fix content type problems some people are seeing 2007-12-19 19:49:28 -08:00
Dan Mills 56b54b801e rename 'bookmarks' events to be weave events; add service-level events in addition to engine-specific ones (where appropriate) 2007-12-19 17:37:01 -08:00
Dan Mills 87591e4c96 login fixes; history sync fixes; make reset client actually delete all client data (useful for testing and for syncing down server data - e.g. the restore case) 2007-12-19 13:24:31 -08:00
Dan Mills dee6b23c4d some more cleanup/refactoring; add history engine/core/store (history sync\!) 2007-12-14 18:07:25 -08:00
Dan Mills 8c9defe994 assume in loaded modules that the resource:// alias has already been added - remove all the templatey code to do that 2007-12-11 11:57:13 -08:00
Dan Mills 085f383f57 more and more refactoring: split weave module into multiple files (finally!) 2007-12-10 21:38:53 -08:00
Dan Mills 391859079a refactoring: remove log4moz component, use it as a js module instead 2007-12-10 19:47:11 -08:00
Dan Mills 7e58799632 more refactoring: move bookmarks-specific code into an 'engine' object; get rid of sync xpcom component and replace it with Components.utils.import hotness 2007-12-10 16:42:10 -08:00
Dan Mills e7493064c7 refactoring more stuff out of the service 2007-12-01 22:57:57 -08:00
thunder@daniel-millss-macbook-pro-15.local ae9e1d1e92 fix incorrect manifest line for locale; move idl files and xpt generation script to a public directory 2007-11-30 10:08:05 -08:00
Dan Mills e7bb744f64 fix bug 406067; more refactoring; speed up reconciliation 2007-11-29 17:14:10 -08:00
Dan Mills 5a140de2ee more refactoring 2007-11-28 14:47:40 -08:00
thunder@daniel-millss-macbook-pro-15.local fd203cba43 refactoring and cleanup 2007-11-27 18:26:21 -08:00
thunder@h-125.office.mozilla.org 991100a461 sync -> weave in chrome URIs; fix broken bookmarks service attribute calls 2007-11-26 13:45:46 -08:00
Dan Mills 16df4695e6 fix maxVersion; fix bookmark root names; get new bookmarks toolbar root 2007-11-20 21:48:41 -08:00
thunder@h-125.office.mozilla.org 88e5943def use btoa instead of external base64 library 2007-11-14 17:09:09 -08:00
thunder@h-125.office.mozilla.org 2f425c8d59 add not-yet-working ui for the encryption prefs; add bookmarks count to the status file 2007-11-14 16:20:16 -08:00
Dan Mills cd9b1836db encryption support, woo\! 2007-11-13 21:37:20 -08:00
Dan Mills de10e7a246 add encryption library; add login dialog 2007-11-13 15:04:55 -08:00
thunder@daniel-millss-macbook-pro-15.local a8a06814a4 support new services service (rework auth dance) 2007-11-12 21:23:07 -08:00
Dan Mills 49b0ddbb1f fix deepEquals to correctly compare non-objects 2007-11-06 17:09:22 -08:00
Dan Mills 1a70050caa don't sync/reset/login if already doing so; improve some http status code checks 2007-11-06 14:35:23 -08:00
Dan Mills cd969651d8 Tweak logging output; make detectUpdates asynchronous (makes the spinny much smoother); avoid setting timers in our service object; add missing piece to support query items; force cache verification when making requests (to avoid using stale data) 2007-10-31 18:23:13 -07:00
Dan Mills f4e685b35c minor changes, version bump 2007-10-29 17:45:02 -07:00
Dan Mills 5ab6c84dfe partial fix for deleting bookmark trees 2007-10-22 11:27:55 -07:00
thunder@thunder-mbp.pavlov.net 8cef2fc542 testing possible fix for deserializing feeds with empty site urls 2007-10-19 19:57:39 -07:00
Dan Mills 1894176a1b don't die when livemarks don't have a site/feed uri set 2007-10-19 16:56:36 -07:00
Dan Mills ddb5328284 Add reset client button to prefs window; add support for queries (e.g. the new 'Places' folder); display errors for all exceptions caught; reset server/client no longer trigger an atomatic re-sync 2007-10-19 16:33:03 -07:00
Dan Mills dcf2cb979f better check for whether we have a token; log event handler events 2007-10-18 20:29:17 -07:00
Dan Mills 4f34719f28 Fix for logout/re-login (no, really!) 2007-10-18 10:00:09 -07:00
Dan Mills b3416e9ffb DAVCollection refactoring 2007-10-18 03:13:35 -07:00
Dan Mills 8acdcd6dd6 change all generators to expect to be closed by their onComplete handler; make sure they all do the bulk of their work within try blocks and always call the onComplete handler 2007-10-17 22:03:55 -07:00
Dan Mills 82332dd1cd add lots more logging output to DAVCollection 2007-10-17 13:49:51 -07:00
Dan Mills 2c3fc3aad0 login/logout fixes; (dav obj) just return from login call right away if we're already logged in 2007-10-16 20:11:35 -07:00
Dan Mills 3ada9edd22 downgrade server changes error to a warning, it will be triggered often by changing indeces 2007-10-16 16:51:44 -07:00
Dan Mills 63a9fb5202 fix same-parent requirement for command likeness 2007-10-16 16:49:46 -07:00
cbeard@h-135.office.mozilla.org 8612dfd801 fix to allow subsequent logins 2007-10-16 15:47:54 -07:00
Dan Mills c468a0489b baseURL -> userURL 2007-10-16 15:36:26 -07:00
Dan Mills 2c507f7654 merge 2007-10-16 15:29:53 -07:00
Dan Mills 760bdcd242 fix logout/re-login 2007-10-16 15:29:31 -07:00
cbeard@h-135.office.mozilla.org 15299da484 myk's patch to catch and ignore a microsummary exception 2007-10-16 15:29:02 -07:00
Dan Mills 58df792f30 add a sync error event; make event names slightly more uniform; fix some resolver bugs 2007-10-16 15:22:40 -07:00
thunder@thunder-mbp.local 0a4db4175d move account 'creation' into the service 2007-10-16 01:45:57 -07:00
Dan Mills d69cd561f0 accept only 200 and 404 as good return codes from a DELETE during resetServer(); release lock before calling doSync 2007-10-15 20:16:11 -07:00
Dan Mills fa692fe149 hook up resetServer to UI 2007-10-15 20:07:00 -07:00
Dan Mills 77c99339e4 only run generatorDone if there's an onComplete handler 2007-10-15 20:04:02 -07:00
Dan Mills 58448e90c2 new xpt from resetServer idl changes 2007-10-15 20:01:56 -07:00
Dan Mills 4056b7d633 add resetServer to idl 2007-10-15 20:00:42 -07:00
Dan Mills 7dd8463192 add resetServer, fix schedule pref 2007-10-15 19:59:54 -07:00
Dan Mills 578e8848b6 listen to sync.enabled pref and enable/disable auto sync 2007-10-15 18:45:02 -07:00
cbeard@h-135.office.mozilla.org 1fa4216f9b revised prefpane and workflows to get us to a more public test of sync 2007-10-15 18:26:39 -07:00
Dan Mills 7b2ef9a45b add timer support, needs cbeard's new prefs 2007-10-15 18:14:44 -07:00
Dan Mills f4abd0e177 one more conflict detection fix 2007-10-15 17:06:13 -07:00
Dan Mills 6d96c0487f various backendy fixes 2007-10-15 16:52:43 -07:00
Dan Mills 35f70cc103 go go synchotron! 2007-10-15 15:31:15 -07:00
Dan Mills af4caa7f76 add resetLock() method to service interface, it resets any server-side locks there may be. not hooked up to any ui. 2007-10-15 13:31:25 -07:00
thunder@thunder-mbp.local 56dfbcc926 fix recursive function bug 2007-10-12 22:58:38 -07:00
Dan Mills beb67ee2d7 fix guids reset method 2007-10-12 18:44:58 -07:00
Dan Mills 6ff50feed6 reset guids on initial sync; prune out commands with guids that already exist on the system 2007-10-12 18:30:26 -07:00
Dan Mills 65da711e60 minor cleanup 2007-10-12 16:10:42 -07:00
Dan Mills 126f9f7d21 logging fixes + make verbose logs more readable; fix guid rename commands when applying to objects; make stealLock work even when the resource isn't locked; remove extra tmp logging 2007-10-12 15:08:22 -07:00
Dan Mills ae2531a19d calculate server deltas based on server latest -> final state diff. fix some logger calls. 2007-10-12 13:29:33 -07:00
Dan Mills b08f4454d4 tri-license log4moz 2007-10-10 17:12:20 -07:00
Dan Mills 3cfe31fa38 additional logging; use __proto__ hack for inheriting object properties in subclassed Appenders 2007-10-10 17:08:58 -07:00
Dan Mills 258d4e372b log the logger name; add a timestamp to logs 2007-10-10 14:02:56 -07:00
thunder@thunder-mbp.local ad74591b2c Add 'log4moz', a log4net clone for Mozilla
--HG--
rename : services/sync/nsBookmarksSyncService.js => services/sync/BookmarksSyncService.js
rename : services/sync/nsIBookmarksSyncService.idl => services/sync/IBookmarksSyncService.idl
rename : services/sync/nsIBookmarksSyncService.xpt => services/sync/IBookmarksSyncService.xpt
2007-10-10 02:09:28 -07:00
Dan Mills 7c0bbf4aa8 sync starred (but unfiled) items; fix autoconnect on browser startup; move all prefs under the same root (though we may need to move them all again later) 2007-10-05 18:38:31 -07:00
Dan Mills 547e328f8e * Fix broken check when loading the locally saved snapshot from disk.
* Add syntactic sugar for "async" functions (generators that can
  continue themselves)
* Do away with separate load & error handlers in general - we never
  used them.
* Wrap generator bodies in a try block to ensure (with a finally
  block) that we execute the generator closing protocol.
* Refactor login code somewhat.
2007-10-05 03:05:01 -07:00
Dan Mills 52e798cffe * add support for livemarks and microsummaries
* add locking support
* don't use db type constants, define our own instead
* standardize capitalization of acronyms

Note: server-side needs to be wiped, no migration code included.
2007-10-04 23:41:09 -07:00
thunder@thunder-mbp.local 9f8bad4933 print http status codes on errors; improve xpath queries we use to get the dav lock tokens 2007-10-04 02:25:57 -07:00
Dan Mills 6f7b2e7e6c locking fixes (still commented out); better error checking; fail if the remote format version is higher than we can read; refactor generator code, bring back asyncRun() 2007-10-03 19:16:47 -07:00
cbeard@chris-beards-computer.local 87d095a326 fleshing out of the setup wizard 2007-10-03 18:00:16 -07:00
Dave Camp 522be42223 sync keywords 2007-10-02 15:30:20 -07:00
Dave Camp d5506ea31e simple tag syncing 2007-10-02 15:07:19 -07:00
Dan Mills 3c8b5717dc rewrote network logic to be far cleaner and more correct. Add initial support for a 'format version'. 2007-10-02 01:39:55 -07:00
Dan Mills 98c2075218 keep a guid when the snapshot is first generated and uplaoded to the server, and propagate it to all clients. this way we know if the server store gets completely wiped out 2007-09-28 17:42:37 -07:00
Dan Mills ead009146c sync engine fixes; logging improvements; try to ensure that property keys are always strings 2007-09-28 03:02:15 -07:00
Dan Mills 4a0275dfc6 better log viewer performance thanks to chris; small bugfixes in the component; temporarily disable some very verbose logging output 2007-09-27 14:40:21 -07:00
Dan Mills b4397c442a activity log fixes 2007-09-26 19:26:29 -07:00
Dan Mills e181ad6bdb activity log fixes 2007-09-26 19:25:55 -07:00
cbeard@h-135.office.mozilla.org 22aad07da3 reconciliation of changes between branches. 2007-09-26 17:45:54 -07:00
cbeard@h-135.office.mozilla.org 55474654a1 added wizard to setup service and get login information for new users
updated server pointers to point to the new services.mozilla.com backend
2007-09-26 17:34:36 -07:00
Dan Mills 53ae8e84c5 unify logging routines, log via the component. Log to a file. Add a couple of crappy attempts at nicer logging output 2007-09-26 15:28:01 -07:00
cbeard@h-135.office.mozilla.org d4c815234e added preferences pane to main pref dialog and wired everything up (except the password bit)
added autoconnect pref and actions
removing sync-engine.js as it doesn't look like we're using it anymore
2007-09-26 12:08:53 -07:00
cbeard@h-135.office.mozilla.org b22d47953a wired up the "cancel" and "sync now" menu items, although they don't do a whole lot yet 2007-09-25 17:19:01 -07:00
cbeard@h-135.office.mozilla.org f6f8318ce2 - super fun spinning throbber goodness! 2007-09-25 16:33:23 -07:00
Dan Mills 3139d1ba1f Fix some nasty bugs with the way js generators were being used. Have the snapshot [de]serialized to the profile 2007-09-24 18:34:03 -07:00
cbeard@chris-beards-computer.local c34946845c - tree[guid] is null for some (as yet) unknown reason 2007-09-24 15:10:25 -07:00
Dan Mills d85686cb70 Add code to disable any auth prompt and turn them into failures (from the microsummary svc).
Get/save sync service password in the password manager (ui missing).
Fix a bug in the reconciler that prevented it from returning any conflicts.
Other misc cleanup.
2007-09-24 00:21:22 -07:00
Dan Mills dd6028d09e Yield to main loop during reconciliation, so as to not block the UI. Fix a broken check when changing the guid of an item. 2007-09-21 16:38:19 -07:00
Dan Mills 6ad7e960a7 Add xpt file, for the xpidl-deprived ;) 2007-09-21 01:47:01 -07:00
Dan Mills 2fb887333b Yay, sync works again! 2007-09-21 01:23:05 -07:00
Dan Mills 4dd14dd3c7 sync.js: move code into an object. Add observer implementation, use observer service to listen to sync events.
sync.xul: cleanup, point into the global sync object from sync.js.
nsBookmarksSyncService.js: add login code, use observer service to publish events.
nsIBookmarksSyncService.idl: add login methods, add comments.
2007-09-20 23:57:18 -07:00
Dan Mills dd3252e20e woo! first sync across profiles works now 2007-09-20 17:26:20 -07:00
Dan Mills df57784c35 flesh out new sync engine - cleanup needed 2007-09-20 16:56:05 -07:00
Dan Mills 5074a3b4e5 Add more awesome. Still some bugs, will try to replace sync-engine.js next (with a more domain-specific version) - beginnings of that already in the code (unused) 2007-09-19 21:08:00 -07:00
Dan Mills 4cb8461d0f Sprinkle the awesome (we correctly create items in the correct place (index) now) 2007-09-18 16:00:52 -07:00
Dan Mills 4a4c291cab Return conflicts from sync engine; change bookmarks serialization to use a flat dictionary keyed by guid, instead of a deep structure. 2007-09-18 11:18:01 -07:00
Dan Mills 43fabdf2af run xptgen from build script, use env vars from xptgen to get mozilla objdir/srcdir paths 2007-09-14 14:56:06 -07:00
Dan Mills f4a130cf8f update from chris' work 2007-09-12 17:12:33 -04:00
Dan Mills cd258ec577 Bookmarks sync extension - initial import 2007-09-12 17:03:30 -04:00