Commit Graph

174 Commits

Author SHA1 Message Date
Dan Mills
26f33178e3 ignore sync if weave is disabled 2009-02-11 13:38:50 -08:00
Dan Mills
12b9ddbbd1 add missing setter for the weave enabled pref 2009-02-11 11:24:16 -08:00
Dan Mills
d8982c5477 oops fix syntax error 2009-02-10 17:57:29 -08:00
Dan Mills
a53adc5e28 catch exceptions when trying to find out user's cluster 2009-02-10 17:50:40 -08:00
Dan Mills
a6a5e2c58e automatically try to detect if the server supports the multi-cluster call (hack hack hack) 2009-02-10 15:56:37 -08:00
Dan Mills
a2ec312908 allow multi-cluster support to be turned off 2009-02-10 13:29:04 -08:00
Dan Mills
8dca51ec38 remove unused code; add multi-cluster support; use Svc.Prefs branch for prefs; move some code from the window overlay into onStartup (print weave version and user agent string); automatically disable weave if crypto module is not working 2009-02-10 00:56:42 -08:00
Dan Mills
d1d31b3bc4 disable scheduled sync when login fails 2009-02-03 15:50:41 -08:00
Dan Mills
a3802a68ed server returns a json object for user root now, modify checkLogin() accordingly 2009-02-02 11:44:07 -08:00
Dan Mills
a3d9640e3c Make records not extend Resource, instead they have a serialize() method that can be used to create a Resource for uploading if necessary.
Use global service instances under Svc.*
Consolidate various record managers (caches/convenience factories) to extend the same base object
Log exceptions caught by notify wrapper
2009-01-27 13:35:10 -08:00
Dan Mills
03ff21c860 Bug 471076: make notify wrapper catch exceptions; don't use catchAll wrapper in service, and check return value of login/verifyLogin 2009-01-24 16:49:23 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
c681501e5c Added callback to Weave.Service.onStartup, which the Fennec UI uses to notify user that Weave has connected, that it ran into an error, or that it's awaiting configuration. Started moving fennec preferences from HTML to XUL. 2009-01-14 11:23:08 -08:00
Dan Mills
3c8aa12c49 syncCores are gone 2009-01-13 16:11:31 -08:00
Dan Mills
d72b5b3b4d make sure we return false if veryfyLogin fails 2009-01-08 16:55:30 -08:00
Dan Mills
ff240dd3ce add clients sync (list of clients with names and types); make it simpler to create Engine subclasses; remove the 2nd 'authenticator' parameter for Resources; resetServer is now wipeServer; consider 0 an invalid place ID (fixes bug when calculating item depths); add a Svc global exported from utils.js where commonly used services can live 2009-01-06 13:54:18 -08:00
Dan Mills
b707751a28 partially re-enable client data (guid,name,type) 2009-01-03 01:40:22 -08:00
Dan Mills
ff39e896cf really actually fix login errors this time 2008-12-27 12:15:45 -08:00
Dan Mills
9ac0dce95a Bug 471076: explicitly check login succeeded 2008-12-26 16:08:55 -08:00
Dan Mills
aff056726e change serverURL to use 0.3 url schema 2008-12-23 13:51:30 -08:00
jonathandicarlo@user-64-9-236-168.googlewifi.com
8f14709c66 Removed extra debug code from service.js 2008-12-21 14:59:33 -08:00
jonathandicarlo@user-64-9-236-168.googlewifi.com
dc02f68f49 Weave on Fennec will no longer attempt to generate SSH keys -- for this release, you need to have a Weave account already and then connect Fennec to it. 2008-12-21 14:41:17 -08:00
jonathandicarlo@localhost
4e59b0d4d7 Wrote some scaffolding for the Fennec-weave UI -- doesn't do anything yet. 2008-12-21 14:08:33 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
54d7de2ca4 Major rehaul/simplification of the Fennec UI for connecting to your Weave account 2008-12-19 15:48:40 -08:00
Dan Mills
3ef1c0d9b1 enable history sync (not working yet) 2008-12-09 12:26:14 -08:00
Dan Mills
c1a443df70 use callbacks instead of snapshot diffs to figure out what changes to send to the server 2008-12-05 00:39:54 -08:00
Dan Mills
c327476fcc remove unused 'cleartext' payload property; add fixme comment to set a pref listener 2008-12-01 18:58:28 -08:00
Dan Mills
5e2d2cec11 reset default key URLs whenever username is set via the service 2008-12-01 18:43:43 -08:00
Dan Mills
73077fa65b fix 'logging in' debug string so it prints the actual username being used 2008-12-01 14:17:44 -08:00
Dan Mills
74e4f48a70 sync engines unconditionally on timer (for now, heuristic sync is broken somehow) 2008-11-27 00:23:25 +09:00
Dan Mills
0ee5550418 attempt at fixing login/server setup, needs more work still 2008-11-20 09:18:35 +09:00
Dan Mills
b12787f2f2 crypto changes: private keys get their own iv and salt, crypto meta records get a separate iv and no salt. various fixes in crypto code and other wbo related objects. fix crypto tests to match. 2008-11-08 02:00:33 -08:00
Dan Mills
43d4c7b865 say sync complete when it is! 2008-11-06 19:19:32 -08:00
Dan Mills
f617e369b1 lots o' fixes 2008-11-06 17:37:17 -08:00
Dan Mills
11eb07f4eb remove lots of code that will not be needed with new server 2008-11-03 14:59:45 -08:00
Anant Narayanan
c200956d6a Syncing for Awesome bar (bug 437133, r=thunder) 2008-08-07 20:00:35 -07:00
Anant Narayanan
f21fbf8051 Client-side OAuth support (bug 444528, r=thunder) 2008-08-04 17:34:21 -07:00
Dan Mills
a0b0f5f888 sync client data when client prefs change 2008-07-31 01:02:41 -07:00
Dan Mills
0102f2cd60 more tab sync fixes, only disposing is left to fix; also allow the notify wrapper to pass along an optional data payload 2008-07-30 21:58:13 -07:00
Dan Mills
2dccefbe5d some more ClientData fixes; *do* wipe the server when there is no version file; upload the version file when needed; refresh ClientData on login 2008-07-29 18:34:10 -07:00
Dan Mills
26596e7d96 ClientData fixes; export to chrome as well 2008-07-29 18:15:13 -07:00
Dan Mills
a81ac5e9da Remote.put doesn't require the data arg anymore 2008-07-29 17:35:10 -07:00
Dan Mills
a4fb63a8a0 print exceptions that come from engines 2008-07-25 16:54:37 -07:00
Dan Mosedale
533147ac4b Minor refactoring to allow for multiple application embeddings of Weave.
Also adds a Thunderbird embedding of weave and a fix to set the
username/password during verifyPassphrase (bug 446444), r=thunder@mozilla.com.
2008-07-21 18:12:27 -07:00
Dan Mills
610f300600 during version check don't attempt to wipe the server when the version file isn't found (that was a workaround for old clients, before the version file existed) 2008-07-16 19:34:35 -07:00
Dan Mills
cf199a8cbf fix sanity checks in getKeypair, cause key 404s to be interpreted as a success condition in verifyPassphrase, re-fetch keys after generating them in initialize 2008-07-12 20:58:19 -07:00
Dan Mills
b3f94ea68a fix verifyPassphrase() 2008-07-12 20:31:27 -07:00
Dan Mills
d734b12ae4 add last exception to fault tolerance module 2008-07-11 18:55:42 -07:00
Dan Mills
ffdc89548f login code refactoring 2008-07-11 17:40:52 -07:00
Dan Mills
f6d457946c beef up fault tolerance module and hook it up to the service 2008-07-11 14:47:15 -07:00
Dan Mills
94709c6381 move formatAsyncFrame to utils, don't print 'regular' stack trace when we have an async exception (it's not useful) 2008-07-11 13:40:06 -07:00