Commit Graph

533 Commits

Author SHA1 Message Date
Dan Mills
94392ccf5d fix tag sync 2008-03-31 17:07:40 -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
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
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
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
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
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
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