Justin Dolske
1b2e7b297b
Use statically-sized stack buffers to fix building on Windows.
2008-06-26 15:22:48 -07:00
Atul Varma
e9e88705ce
Automated merge with http://hg.mozilla.org/labs/weave
2008-06-26 15:02:08 -07:00
Atul Varma
2bd0a8ac17
Refactored some things in the test framework to make tests easier to write, and to make certain things possible to write.
2008-06-26 15:01:34 -07:00
Anant Narayanan
62a0ebb31e
Add license headers to all files which didn't have them.
2008-06-26 14:49:01 -07:00
Dan Mills
277753d21a
tone down tab engine debugging output a bit
2008-06-26 14:34:32 -07:00
Dan Mills
703829a510
fix comment in verifyLogin
2008-06-26 14:30:38 -07:00
Dan Mills
5c7f8c6a40
check login status code in service's verifyLogin; attempt to create user directory when it's a 404
2008-06-26 12:27:54 -07:00
Dan Mills
6badbcac4d
merge upstream changes
2008-06-26 12:23:07 -07:00
Dan Mills
2d3216c74e
return http status code from dav's checkLogin
2008-06-26 12:22:19 -07:00
Dan Mills
e021d9ade1
disable bookmarks sharing & xmpp for developer release
2008-06-26 12:21:25 -07:00
Maria Emerson
8d963abd80
added text (not final), changed background, some code clean-up, todo: more code clean-up, fix large buttons (they are ugly)
2008-06-26 12:09:28 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
437cac3a82
For developer release, made bookmark sharing and xmpp preferences default to false
2008-06-26 12:07:38 -07:00
Atul Varma
f33b85dc5d
Automated merge with http://hg.mozilla.org/labs/weave
2008-06-26 11:40:24 -07:00
Atul Varma
792f0f7e87
Refactored password sync test to use newly-added functionality in the sync testing infrastructure.
2008-06-26 11:40:14 -07:00
Atul Varma
0e87611a56
Revalidated log for password sync test, which changed due to Thunder's changes that put deltas for individual versions into their own files on WebDAV.
2008-06-26 11:38:40 -07:00
Anant Narayanan
dcb7a1ada2
Automated merge
2008-06-26 11:16:02 -07:00
Anant Narayanan
2339871cf6
Prevent multiple lock requests from being executed (bug 441922, r=thunder)
2008-06-26 11:15:02 -07:00
Atul Varma
6e8d38ac08
Refactored client state-changing functions out of test_bookmark_syncing.js and into head.js, as part of the SyncTestingInfrastructure class, so that other test suites can use them.
2008-06-26 11:07:13 -07:00
Justin Dolske
4abaf0f90c
bustage fix: call this.foo(), not foo().
2008-06-25 18:32:59 -07:00
Anant Narayanan
ee51a31ea5
Remove runCmd and other openssl related stuff we no longer need. (bug 441898, r=thunder)
2008-06-25 17:10:24 -07:00
Anant Narayanan
b53674f5dc
Handle removeCommand in FormEngine correctly. (bug 441874, r=thunder)
2008-06-25 17:09:18 -07:00
Atul Varma
4740979f77
Automated merge with http://hg.mozilla.org/labs/weave
2008-06-25 17:05:25 -07:00
Atul Varma
cd2f7cdb93
Bookmark sync test now attempts to add a bookmark on the second computer, then re-sync on the first computer and ensure that the bookmark is copied over.
2008-06-25 17:05:20 -07:00
Anant Narayanan
710665c8e2
Branch merge
2008-06-25 16:34:50 -07:00
Anant Narayanan
c8b970ae19
Change default server URL to services.mozilla.com
2008-06-25 16:34:28 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
a2dede213a
Merged
2008-06-25 15:55:13 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
3f37543011
Set up bookmarkEngine._incomingShareOffer to use Myk's new Notification stuff to offer a notification to the user, asking them to accept or reject the incoming share.
2008-06-25 15:54:33 -07:00
Maria Emerson
946084c271
fixed interaction details, all login/verify cases work correctly, final screen creates account and syncs correctly
2008-06-25 15:44:35 -07:00
Atul Varma
9beba70275
Added a number of "real" bookmark sync tests; see test_bookmark_syncing.js for information.
2008-06-25 14:30:53 -07:00
Myk Melez
cab1d95570
bug 436636: a system for showing various kinds of notifications in one consolidated location
2008-06-25 13:51:39 -07:00
Myk Melez
b379fdece8
the tabs engine needs a constant
2008-06-25 13:51:32 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
6f37a50f99
The share/stop sharing menu item is now added only to normal bookmark folders: Not to the main bookmark menu or to magic folders like 'recently tagged' or whatever.
2008-06-25 11:58:04 -07:00
Atul Varma
92f85d952e
Another automated merge. I'm kind of confused at this point, so I hope I'm not breaking anything by mis-merging.
2008-06-25 04:45:22 -07:00
Atul Varma
c747b0559e
Automatic merge.
2008-06-25 04:44:25 -07:00
Maria Emerson
e1e6f79037
fix login calls, do login and sync on final screen, add try again link to server errors throughout
2008-06-25 04:43:13 -07:00
Atul Varma
37225f431c
Changed AsyncException so that it dynamically subclasses the exception it's wrapping, and adds an 'asyncStack' property to allow access to the asynchronous call stack. This, along with my previous few commits, makes the processing of stack traces in our code much more streamlined, and also allows our debugging output to be more informative, as stack information is now logged from the point at which an exception was thrown, rather than the point at which it was caught.
...
Also renamed some things in async.js to be more descriptive and easier-to-understand, albeit a bit more verbose.
2008-06-25 04:43:07 -07:00
Myk Melez
be2bf638be
bug 441446: set mozBackgroundRequest on XMPP request object when created rather than when used, since it only needs to be set once
2008-06-25 01:56:17 -07:00
Justin Dolske
b015539e7a
Split account verification out from login(), make wizard work for using an existing account, related code cleanup/simplification
2008-06-25 00:22:53 -07:00
Atul Varma
9d7f1afc80
Made exception logging routines more informative and added logtests for them.
2008-06-25 00:13:36 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
1d19d1357f
Merged
2008-06-24 21:15:23 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
b24d0c7180
Moved all of the bookmark-share stuff out of the bookmarkEngine class into a new BookmarksSharingManager class.
2008-06-24 21:15:14 -07:00
Atul Varma
7b4737aed7
Fixed something that I should've changed in my last commit; also removed a call to Utils.stackTrace() that shouldn't have been made.
2008-06-24 19:58:50 -07:00
Justin Dolske
e25d17c184
Bustage fix: frame.filename can be null, and the async stack dump can then fail (which causes other problems)
2008-06-24 19:39:58 -07:00
Atul Varma
7327a55d0d
Renamed AsyncException.trace and Generator.trace to AsyncException.traceback and Generator.traceback, respectively, to distinguish them from Logger.trace() and also explicitly indicate their noun-like nature (since they're properties).
2008-06-24 19:15:54 -07:00
Atul Varma
caa3295271
Renamed the global trace() function in async.js to traceAsyncFrame(), to avoid confusing it with Logger.trace(), AsyncException.trace, and Generator.trace, all of which are also used in that file.
2008-06-24 19:08:35 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
bc4d891c3a
Moved the folder name and annotation for the incoming shares root folder to string constants.
2008-06-24 18:38:29 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
8cc67dd324
Merged
2008-06-24 18:28:26 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
fcd94e31e2
Fixed all the places where I was accidentally calling it incomingShareAnno instead of incomingSharedAnno (note the missing letter d). Same for outgoingSharedAnno.
2008-06-24 18:28:01 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
4cba1fd51c
Removed all uses of the 'weave/mounted-shares-id' annotation, since it's been made obsolete by INCOMING_SHARED_ANNO.
2008-06-24 18:23:43 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
0edbf9998f
Changes in the annotations relevant to incoming/outgoing share folders are now handled by editCommands in the syncCore.
2008-06-24 18:15:17 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
4bc77b8e05
Annotations on incoming and outgoing share folders are now wrapped for sync, and handled on incoming createCommands.
2008-06-24 18:09:41 -07:00
Myk Melez
8dcf0279c4
bug 441446: set mozBackgroundRequest on XMPP request object when created rather than when used, since it only needs to be set once
2008-06-24 17:45:37 -07:00
Atul Varma
b5dc3b878a
Added a really, really basic sync test for bookmarks.
2008-06-24 16:55:56 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
2158cdf9c4
Merged
2008-06-24 13:41:25 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
c4fa84f683
Merged
2008-06-24 13:41:12 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
03d94018af
Added todo about exception handling
2008-06-24 13:41:01 -07:00
chris@h-194.office.mozilla.org
95d87d63e0
merging
2008-06-24 12:44:26 -07:00
chris@h-194.office.mozilla.org
32d06ac143
added embedded verification method to login (this wants to be it's own object method, but should work well enough for now.)
...
some formatted cleanup for wizard.js
2008-06-24 12:42:52 -07:00
Dan Mills
e2fc25dbfa
Store each delta as a separate file on the server
2008-06-24 12:33:27 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
286e670fb2
Finished the bridge between UI code and bookmark engine so that stopSharing gets called when you pick the menu itme.
2008-06-24 12:22:32 -07:00
chris@chris-beards-macbook-pro-2.local
b969583294
another pass at polishing the first run experience, work in progress
2008-06-24 08:51:40 -07:00
Maria Emerson
c968d59fe3
consolidated error reporting, formatting tbd
2008-06-23 22:48:44 -07:00
Atul Varma
f9ab00520c
Separated test_passwords into itself, which contains pure unit tests, and test_password_syncing, which contains a suite that's more along the lines of a system test, though still with plenty of stuff faked-out. fake_login_manager.js contains code shared between the two suites.
...
--HG--
rename : services/sync/tests/unit/test_passwords.log.expected => services/sync/tests/unit/test_password_syncing.log.expected
2008-06-23 21:21:40 -07:00
Atul Varma
0258487f7a
Refactored stuff out of test_passwords and into head.js to make creating new sync tests for different engines easier.
2008-06-23 20:57:10 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
ed99f7cb53
Make the stop-sharing-data command work
2008-06-23 18:23:08 -07:00
Atul Varma
088eeebfd3
Added some more visibility to the individual steps of test_passwords.
2008-06-23 18:01:48 -07:00
Atul Varma
387927da84
Updated expected log for test_passwords based on recent code changes.
2008-06-23 17:41:01 -07:00
Justin Dolske
6ed3755104
Bug 433949 - Use WeaveCrypto component (NSS) instead of OpenSSL
2008-06-23 16:23:57 -07:00
Myk Melez
bb55bba909
Automated merge with ssh://hg.mozilla.org/labs/weave/
2008-06-23 16:22:17 -07:00
Myk Melez
9668227aad
wrap notify around lock instead of the other way around so that notify includes locking failure/success in its notifications
2008-06-23 16:22:05 -07:00
Justin Dolske
6162fe5ab1
Use allocated buffers instead of stack when the buffers can be large (OS X has a 1MB limit)
2008-06-23 16:14:55 -07:00
Myk Melez
6cdf7d9c0d
bug 435341: sync automatically when Firefox quits
2008-06-23 16:10:31 -07:00
Maria Emerson
21df91abd7
work in progress, push for wizard
2008-06-23 15:48:01 -07:00
Atul Varma
ed6f207586
Added 'resync on second computer' step to test_passwords.
2008-06-23 14:45:58 -07:00
Atul Varma
c573243c97
Removed a line of code that was raising a strict warning, and which also just defined an unused local variable that called no functions and therefore had no side effects (unless there were property getters that had side-effects involved, which hopefully wasn't the case).
2008-06-23 14:32:55 -07:00
Atul Varma
cd6f3ef8d3
Moved the FakeGUIDService from test_passwords.js to head.js.
2008-06-23 14:13:46 -07:00
Justin Dolske
1cba11e508
Add Makefile support for building on ARM, move comment that triggers bug on scratchbox's Make 3.80
2008-06-22 14:43:09 -07:00
Atul Varma
9baa177ade
A tiny bit more refactoring to test_passwords.
2008-06-20 18:36:33 -07:00
Atul Varma
77a64f448f
Oops, forgot to recommit the canonical log for test_passwords in my last commit.
2008-06-20 18:36:11 -07:00
Atul Varma
7e429a9eba
Fake GUID generator now provides a different yet deterministic GUID upon each invocation.
2008-06-20 18:25:21 -07:00
Atul Varma
fd24f3706a
test_passwords now also removes a user after doing everything else.
2008-06-20 18:04:59 -07:00
Atul Varma
01b47a4865
Factored out the fake filesystem related functions in test_passwords.js into a FakeFilesystemService class in head.js.
2008-06-20 17:47:32 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
4489fb2ce3
The XMPP server is now configured to use LDAP for authentication (on sm-labs01, and soon to be on services.mozilla too) so the xmpp username/password will now be the same as the weave username/password. So I now use those to login, and I got rid of the two extra preferences which we used to have for xmpp username/password.
2008-06-20 17:19:10 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
7d953f2669
fixed some minor formatting
2008-06-20 16:46:38 -07:00
Atul Varma
0d27ee6f89
Refactored test_passwords to make it more modular and readable, changed the formatting of some log messages to be more descriptive.
2008-06-20 15:39:07 -07:00
Myk Melez
e760fc6a12
make xmpp requests be background requests so they don't get horked by load group problems or throw up auth dialogs
2008-06-20 14:26:40 -07:00
Atul Varma
4c78f8d170
Improved test_passwords so that it syncs, re-syncs, adds a new user, and re-syncs again.
...
Fixed a strict warning in engines.js.
2008-06-20 14:22:06 -07:00
Atul Varma
4e39258260
Made the tracking of async generators/coroutines more robust for debugging purposes.
...
Refactored code in syncCores.js to use Utils.makeTimerForCall().
Improved test_passwords to perform an additional sync after the initial one.
2008-06-20 13:58:56 -07:00
Atul Varma
2f9945b9d3
Added more informative output for fake DAV, so that log-based tests are both more self-documenting re: Weave's behavior and serve as more robust test cases.
2008-06-20 12:49:25 -07:00
Atul Varma
a39acd2449
Added an expected-log for the passwords sync engine unit test.
2008-06-20 12:39:50 -07:00
Atul Varma
ac90aaff04
Refactoring: consolidated duplicate code creating GUIDs via XPCOM gunk into a new function, Utils.makeGUID().
...
Note that there are some strange things re: whitespace in engines/bookmarks.js in this changeset; I literally only changed one line, though, and I'm not sure where they came from. Maybe it was js2-mode?
2008-06-20 12:34:29 -07:00
Atul Varma
11abf27a3e
Minor code tidying.
2008-06-20 12:27:17 -07:00
Atul Varma
32c7be2a6f
Changed log level in a unit test.
2008-06-20 12:24:02 -07:00
Justin Dolske
58435fa195
Small bug fix from my last small bugfix. :(
2008-06-19 20:18:59 -07:00
Atul Varma
aa73eb4763
Fixed a bug in the outstanding-callback-warning system and made Generator.throw() and Generator.cont() private methods because no client code was using them and it could introduce bugs in the system if they do; we can revisit making them public again later if we want.
2008-06-19 19:03:10 -07:00
Maria Emerson
19ef5f5903
Automated merge with ssh://memerson@mozilla.com@hg.mozilla.org/labs/weave
2008-06-19 17:55:09 -07:00
Atul Varma
ea744597ab
Modified the way logging works in unit testing; fake testing components now log as part of the 'Testing' logger instead of the root logger.
2008-06-19 17:04:04 -07:00
Atul Varma
237b9c8f1d
Removed warning message from ID.get() because it's actually normal to pass in an ID that doesn't exist to it, to test for its existence. Though perhaps there should be an exists() method for such a use case instead.
2008-06-19 16:37:53 -07:00
Atul Varma
93520a6e78
Added more fake prefs to the password test to eliminate strict warnings, added logging code to identity.js to aid in debugging.
2008-06-19 16:03:42 -07:00
Maria Emerson
e601518a2e
updating wizard
2008-06-19 15:43:50 -07:00
Justin Dolske
50174a9bff
Fix reference to undefined function and bad async arg.
2008-06-19 15:36:24 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
4f11d0d14d
Fixed some more missing commas that were preventing engines/bookmarks.js from loading
2008-06-19 15:25:25 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
28bf4dc4f6
Added missing comma after function definition
2008-06-19 15:23:01 -07:00
Justin Dolske
8cb487fcc3
Apparently NS_IMPL_NSGETMODULE("FOO") doesn't work on Linux, but NS_IMPL_NSGETMODULE(FOO) does.
2008-06-19 14:51:20 -07:00
Justin Dolske
28ffd269e9
Minor tweaks for compile errors on Linux.
2008-06-19 13:03:10 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
d58bdfe874
Backed out changeset 7720a1dd564a because the new crypto stuff that it uses hasn't been enabled yet.
2008-06-19 11:59:52 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
bff803b730
Applied dolske's patch from bug 433949 to make the bookmarkEngine work with the new improved Crypto interface.
2008-06-19 11:41:57 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
467eaba47c
merged
2008-06-19 10:51:54 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
5725f10629
Reimplemented most of _updateIncomingShare to work with the new implementation of _updateOutgoingShare. No more need for the ugly hack to temporarily set the root directory of DAV, hooray
2008-06-18 23:27:48 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
423c88e98c
Implemented _stopOutgoingShare (though it's still not being called from anywhere).
2008-06-18 23:00:09 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
624280ac82
Added documentation to createIncomingShare, rewrote it a little to be consistent with the other new stuff, and made it use annotations to keep track of the server path to the shared data.
2008-06-18 22:37:06 -07:00
Justin Dolske
4078b28f1d
Checkin of NSS-ized WeaveCrypto module (not yet used)
2008-06-18 21:42:16 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
e4d31fe71d
Gave the bookmarksEngine a permanent (lazy-initialized) reference to the annotation service, rather than recreating the reference every single time we use the service. Which is a lot of times now.
2008-06-18 20:53:11 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
9cc02dd84a
Implemented _updateAllOutgoingShares in bookmarkEngine.
2008-06-18 20:45:01 -07:00
Myk Melez
6b9854fb49
Automated merge with ssh://hg.mozilla.org/labs/weave/
2008-06-18 19:35:31 -07:00
Myk Melez
bef3575bef
bug 439553: add a 'change password' form to the weave preferences
2008-06-18 19:35:23 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
f903901b8e
Removed an unneeded yield statement from startXmppClient (this was raising warnings about yeilding without a callback.)
2008-06-18 18:48:17 -07:00
Atul Varma
6046183cfa
Finished test_passwords.js, although it raises a number of strict warnings.
2008-06-18 18:08:33 -07:00
Atul Varma
837747b2b8
Replaced boilerplate XPCOM code with calls to util.js functions.
2008-06-18 18:04:01 -07:00
Atul Varma
920bb46e7c
Fixed a preference typo in test_service.js.
2008-06-18 17:33:44 -07:00
Atul Varma
4165ed8219
Automated merge with http://hg.mozilla.org/labs/weave
2008-06-18 17:28:38 -07:00
Atul Varma
251f02b0f0
test_passwords.js now performs a fake sync, but I ran into an issue that may be a bug in remote.js.
2008-06-18 17:28:28 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
8a4b887b1b
Set the default preference for weave's xmpp server-url to be the new secure url for the ejabberd server on sm-labs01.
2008-06-18 17:25:46 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
da54b30943
Turned all remaining dump()s in transportLayer.js into Log4Moz debug calls.
2008-06-18 17:23:04 -07:00
Atul Varma
7829070424
Refactoring; moved code out of test_service.js and into unit/head.js for use by other tests.
2008-06-18 16:51:54 -07:00
Atul Varma
e9670abd3f
Added a new property to async.js, Async.outstandingGenerators, which returns the number of generators that haven't yet been finalized. This can be used for diagnostic purposes to determine whether generators haven't yet been called back.
2008-06-18 16:11:15 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
110f387e1c
Imported Log4Moz to xmpp/transportLayer.js and xmpp/authenticationLayer.js, so they're no longer raising errors about Log4Moz being undefined (oops, sorry, should have tested before pushing.)
2008-06-18 14:59:06 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
5346076d1f
Merged
2008-06-18 14:53:30 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
51c929369d
XMPPClient sends its debugging output to log4moz (mostly debug level) now instead of dump, so it's less annoyingly verbose.
2008-06-18 14:50:02 -07:00
Atul Varma
30046913d8
Refactored some file operations into a new function in Utils and out of engines.js.
2008-06-18 14:12:24 -07:00
Justin Dolske
44f48bc439
You have: no tea. (Remove old TEA crypto support)
2008-06-18 13:25:58 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
8c09f36ad5
The xmpp messages that are sent when a share is offered now include the server-side path to the share directory.
2008-06-18 13:16:32 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
2a1462352b
Merged
2008-06-18 12:48:26 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
0bef123361
made all calls to Resource.get() and Resource.put() properly asynchronous.
2008-06-18 12:48:20 -07:00
Atul Varma
1ab8baed0c
Fixed typos.
2008-06-18 12:45:02 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
03cf0d6f73
Removed the check of whether the directory exists before creating it, in _createOutgoingShare(): realized it's not neccessary since DAV.MKCOL already does it.
2008-06-18 12:41:34 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
c7ac787fb1
Merged
2008-06-18 12:32:52 -07:00
Atul Varma
62236e45cd
Replaced a bunch of boilerplate XPCOM with a call to Utils.makeTimerForCall().
2008-06-18 12:32:20 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
68669b6a0f
Merged changes
2008-06-18 12:29:39 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
6503df042f
Added documentation to BookmarkEngine._updateOutgoingShare.
2008-06-18 12:29:25 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
eb2aa3c9bb
Complete rewrite of _createOutgoingShare and _updateOutgoingShare in BookmarkEngine, using remote.Resource objects and Crypto.
2008-06-18 12:26:51 -07:00
Atul Varma
ce9f6b0af8
Removed an unused constructor parameter from PasswordEngine.
2008-06-18 12:04:49 -07:00
Atul Varma
22a628bfea
Moved XPCOM-specific stuff from engines/passwords.js to util.js so they could be easily stubbed-out by unit tests.
2008-06-18 11:54:24 -07:00
Atul Varma
90d243db16
Refactored test_service and module code so that the weave service constructor is called, and auth is done more accurately.
2008-06-17 19:54:09 -07:00
Atul Varma
945a8b782a
The manage.py test-runner now compares expected results to actual results if a '<test-name>.log.expected' file exists in the test directory; if they don't match, a unified diff is displayed. Note that this is only done via manage.py, it's not currently implemented in the Makefile test framework because makefiles make me barf.
2008-06-17 12:04:40 -07:00
Atul Varma
a6cca49fc3
Added a fake preference service to test_service.
2008-06-17 11:45:13 -07:00
Atul Varma
6b20868829
Fixed a minor typo, though there's a better way to do the unary getter which Myk told me about; will probably substitute that soon.
2008-06-17 11:11:56 -07:00
Atul Varma
f9463209a2
Added a fixme/todo in the code.
2008-06-17 10:23:35 -07:00
Dan Mills
dec04b1bc3
merge upstream changes
2008-06-17 18:04:16 +09:00
Dan Mills
0c3a240876
make RemoteStore a but more Store-like (wrap, wipe methods); fix a missing yield
2008-06-17 18:03:02 +09:00
Dan Mills
5e07cb98d5
Don't allow re-entrance! Fail to lock when we already hold a lock.
2008-06-17 18:01:48 +09:00
Atul Varma
245e6492da
Fixed a strict warning in util.js.
2008-06-16 18:11:41 -07:00
Atul Varma
b0ca747fe2
Added test_service, which currently tests the case in which the server's meta/version and private/privkey files are correct, as well as all authentication information.
2008-06-16 18:08:37 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
43eec5b867
In the middle of trying to make createOutgoingShare work with Dan's changes (getSymKey having been moved to remote.js, etc.)
2008-06-16 17:52:24 -07:00
Dan Mills
99e6994409
merge upstream changes
2008-06-17 09:51:25 +09:00
Dan Mills
5c196a641a
treat paths beginning with '/' as absolute
2008-06-17 09:51:02 +09:00
Atul Varma
8d40fc280b
Refactored test suites based on recent changes.
2008-06-16 16:53:53 -07:00
Atul Varma
459e94fa97
Factored out fake-timer code into a separate class and moved it to head.js.
2008-06-16 16:42:32 -07:00
Atul Varma
de38af3819
Refactored head.js for unit tests so that we now have an 'initTestLogging()' function.
2008-06-16 16:22:00 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
f4e7177928
Merged
2008-06-16 15:52:26 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
f6cc70889f
Trying to debug _createOutgoingShare...
2008-06-16 15:52:15 -07:00
Atul Varma
2675855ed4
Defined Cu -> Components.utils in head.js so that test files don't have to put it in as boilerplate.
2008-06-16 14:06:05 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
6ce93ffd1d
Merged
2008-06-16 11:24:41 -07:00
Dan Mills
f8a841ee5e
move more remote-interaction code into RemoteStore (and out of Engine)
2008-06-17 01:04:23 +09:00
Dan Mills
f74b9f910f
catch 404s from initSession and do an initial upload; fix some bugs (missing yields, references to Engine properties) in RemoteStore.initialize
2008-06-16 00:21:44 +09:00
Dan Mills
a8ad7d2804
merge upstream changes
2008-06-15 13:42:10 +09:00
Dan Mills
561b27a92c
merge upstream changes
2008-06-14 17:10:40 +09:00
Dan Mills
049ecf1de3
Move remote init code ('fullUpload') into RemoteStore; make RemoteStore hold an Engine object (tightly coupling them); make the server prefix and identity properties of Engine public
2008-06-14 17:07:06 +09:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
9805cdce23
Merged
2008-06-13 16:22:04 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
835100b96d
Fixed some minor bugs -- the name of the incoming shared folder is parsed correctly, and xmppClient now catches bounce errors that were previously parsed as messages.
2008-06-13 16:20:43 -07:00
Atul Varma
92583fc5ff
Fixed an 'outstanding callbacks' warning and simplified the code a tiny bit.
2008-06-13 15:39:06 -07:00
Myk Melez
b12f3d03db
use nsIXMLHttpRequest::mozBackgroundRequest instead of DummyAuthProvider to suppress authentication dialogs and ensure XMLHttpRequests succeed even when the window that originated the request goes away
2008-06-13 13:08:36 -07:00
Dan Mills
589f3222eb
To avoid some async.js warnings: Turn some 'yield' calls into 'return' ones, and don't call 'self.cb' twice in a row when constructing event listeners for XHRs.
2008-06-13 15:49:18 +09:00
Dan Mills
9812ba557e
Make some 'debug' log calls into 'trace' ones. Use the frame formatter, which will remove long paths to extension dirs from the output. Don't warn about outstanding callbacks if we caught an exception from the generator.
2008-06-13 15:47:41 +09:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
5c8481de3d
Merged
2008-06-12 17:35:57 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
c548d4b940
Made the initialization of the xmppClient an asynchronous call. This included modifying xmppClient.js so that connect() can be passed a callback function that will get called once the connection has succeeded or failed. For most of our purposes this is probably a better API than what we had before where you call waitForConnection() and it busy-waits until the connection has succeeded or failed.
2008-06-12 17:35:44 -07:00
Myk Melez
b4967c8831
work around XmlHttpRequest bug 317600 by pausing for a 0ms timeout before trying to log in
2008-06-12 16:23:59 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
b462aad4a5
Merged changes.
2008-06-12 14:30:46 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
2b055a3b87
Fixed the server URL for xmpp connections.
2008-06-12 14:30:39 -07:00
Myk Melez
18d8e8fcd7
bug 410550: stop running scheduled sync when the user is not logged into weave
2008-06-12 12:36:58 -07:00
Atul Varma
9d32240087
Changed some of the debug() logging statements I added a few commits ago into trace() statemetns b/c they were drowning the log.
2008-06-12 12:00:19 -07:00
Myk Melez
f47209b9d2
only retrieve score once per engine when doing a scheduled sync, since retrieving the score can be a non-negligible cost for trackers that calculate the score on-demand (like the tab tracker)
2008-06-11 20:07:35 -07:00
Myk Melez
669e57136f
Automated merge with ssh://hg.mozilla.org/labs/weave/
2008-06-11 20:00:59 -07:00
Myk Melez
5d50fffd37
don't sync tab entry IDs, which change with every session, to avoid generating edit commands for every tab on restart even when the tabs haven't actually changed
2008-06-11 20:00:48 -07:00
Atul Varma
4864f07ae2
async.js now keeps track of how many outstanding callbacks it has and uses this information to log warnings about coroutines that may have yielded without an outstanding callback, and coroutines that may have finished while a callback is still outstanding. These are merely 'warnings' rather than certainties because this code assumes that there is a 1:1 correspondence between accesses to self.cb and yields, and also that self.cb's are actually passed to asynchronous functions. It'd be really cool if we could actually keep track of whether a callback got garbage collected before it was called or something, though I don't know how much it'd help in the end.
2008-06-11 19:19:16 -07:00
Atul Varma
7d98a5dbeb
Added a few log messages to hopefully make the debugging of generators easier. Also added an id component to generators, which is part of their name, to help distinguish between concurrent instances of the same generator function. The following debug output represents the new logging infomation:
...
--
Async.Generator DEBUG runTestGenerator-0: self.cb generated at test_async_missing_yield.js:28
Async.Generator DEBUG secondGen-1: self.cb generated at test_async_missing_yield.js:20
Async.Generator DEBUG secondGen-1: done() called.
Async.Generator DEBUG runTestGenerator-0: self.cb() called, resuming coroutine.
Async.Generator DEBUG runTestGenerator-0: done() called.
Async.Generator DEBUG secondGen-1: self.cb() called, resuming coroutine.
Async.Generator DEBUG secondGen-1: done() called.
Async.Generator ERROR Async method 'secondGen-1' is missing a 'yield' call (or called done() after being finalized)
--
As you can see, I've added log messages whenever the Generator's 'cb' property is accessed--this is almost guaranteed to be very close to a 'yield' statement, and therefore provides us with a decently accurate idea of where the generator 'stopped'. We also log a message when the generator continues, and by doing so we get an idea of how the coroutines interleave.
Another idea I had was to actually match calls to self.cb with calls to 'yield' to automatically detect e.g. two yields in a row (which will ordinarily result in a generator 'hanging'), a generator exiting while a self.cb still hasn't been called, but I'm not sure what kinds of reprecussions it may have.
2008-06-11 18:58:30 -07:00
Myk Melez
a850ec7b70
numChanged should be the number of shared items whose data is different, not the same
2008-06-11 18:47:56 -07:00
Atul Varma
28a0971380
Merged changes.
2008-06-11 18:03:11 -07:00
Atul Varma
78c2bba04d
Added test_async_missing_yield. It's very messy right now and duplicates code from other tests, but I've got some ideas about how to write better tests for async ops that I'll commit soon.
2008-06-11 18:02:46 -07:00
Maria Emerson
7da4259fee
bug 438033: implement a better first-run wizard process; r=myk
2008-06-11 17:56:02 -07:00
Myk Melez
f9ef596828
Automated merge with ssh://hg.mozilla.org/labs/weave/
2008-06-11 17:45:54 -07:00
Myk Melez
0a15090c8c
bug 437529: yield after starting to put the status file to the server so we don't finalize the sync until the PUT request completes
2008-06-11 17:44:08 -07:00
Atul Varma
d32ba01952
Modified test_async_exceptions to use a fake nsiTimer.
2008-06-11 17:10:39 -07:00
Atul Varma
561d94aa66
Added a unit test for async exceptions.
2008-06-11 16:38:22 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
97f788bb51
Fixed Utils.prefs.getStringPref (should be getCharPref)
2008-06-11 15:43:12 -07:00
Myk Melez
8182b10abf
resetting the score is not an asynchronous operation, so Service::_syncEngine shouldn't yield after calling it
2008-06-11 15:23:54 -07:00
Myk Melez
633afe0864
clarify wording in scheduled sync threshold debug statements
2008-06-11 14:16:03 -07:00
Myk Melez
555b8a7be4
fix typo in recent checkin that broke appending deltas to the deltas file on the server
2008-06-11 14:14:04 -07:00
Myk Melez
2b2192aca5
once sync thresholds reach 1 (the lowest possible value), leave them there until something changes and we sync
2008-06-11 13:50:47 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
5459e1733a
Resolved merging conflicts to service.js.
2008-06-11 11:54:44 -07:00
jonathandicarlo@localhost
4bb05d10b5
Created preferences for xmpp connection info (server url, realm, username, password), and a preference to turn xmpp messaging on or off, and made BookmarkEngine._init() call startXmppClient when this preference is true.
2008-06-11 11:13:35 -07:00
jonathandicarlo@localhost
918cc51c7f
Expanded bookmarkEngine.share and added some more todos for the next round of functions to implement
2008-06-11 11:01:45 -07:00
Myk Melez
932871d1bd
merge
2008-06-11 10:41:57 -07:00
Myk Melez
4a8808e790
bug 430363: ignore remove commands when generating deltas for history so the deltas file on the server doesn't grow too large; r=thunder
2008-06-11 10:40:24 -07:00
Myk Melez
482d745360
bug 434816: use a decreasing threshold algorithm for the periodic scheduled sync to make sure we eventually sync even small changes to data; r=thunder
2008-06-11 10:38:25 -07:00
Dan Mills
5ca3a1eb7f
merge upstream changes
2008-06-11 23:31:28 +09:00
Myk Melez
0f8b279e6e
give Engine a public getter for its snapshot that TabTracker can access when generating a sync urgency score
2008-06-11 00:03:28 -07:00
Dan Mills
de1d1acb26
Various changes:
...
Engine/RemoteStore:
* Move code to make the engine remote directory into RemoteStore.
* Fix initSession call in Engine to properly use callback / call yield.
* Do not check '_getServerData' return status in _sync, we will use exceptions from RemoteStore instead.
* Move code to push a new delta into RemoteStore (appendDelta()). Currently comments out code that forces a re-upload in cases where the server (engine) format version was different. We may add this back later into RemoteStore (?).
* Note that this patch also removes the 'this._encryptionChanged' conditional, which I believe is currently useless (we never set it).
Service:
* When wiping the server (due to a server version mismatch), skip .htaccess files, since they are usually not user-modifiable.
2008-06-11 11:12:04 +09:00
Anant Narayanan
9cb5d2c8cc
Make sync service check score before syncing: bug #434816 (r=thunder)
2008-06-10 13:45:37 -07:00
Atul Varma
9c1413e024
Factored out all the logging+async setup code from test_sharing.js into a new global function, makeAsyncTestRunner(), which turns an async.js-style generator into a unit test.
2008-06-09 20:51:23 -07:00
Atul Varma
9cc4da48c1
Refactoring: made a new function, Utils.makeTimerForCall(), which is used by test suites and async.js.
2008-06-09 19:30:11 -07:00
Atul Varma
98a85cbd23
Refactorings to test_sharing.js to make it use the async do_test_pending()/do_test_finished() calls.
2008-06-09 19:18:14 -07:00
Atul Varma
2905492e20
Added modules/sharing.js, which provides access to the RESTful sharing API, and a unit test suite. The unit test suite is pretty heinous right now and should get a bit of refactoring.
2008-06-09 18:55:26 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
dece7fdbd2
Merged
2008-06-09 18:44:21 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
b22dd7428c
Fixed a couple of minor bugs that were preventing bookmark share from starting (like, i was skipping enabled engines instead of disabled engines... duhh)
2008-06-09 18:44:13 -07:00
Atul Varma
6fc267b942
Fixed a bug that was causing failing unit tests using async.js to not properly report error conditions.
2008-06-09 18:40:30 -07:00
Atul Varma
813c1abb3f
Added a POST method to dav.js.
2008-06-09 17:36:54 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
dc2d1940dd
Moved the writing of the outgoing-share annotation on the bookmark folder to BookmarkEngine._share, where it makes a lot more sense than it does in the share.js dialog-box code where it used to be.
2008-06-09 16:49:04 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
7ca2dae349
Fixed a couple minor bugs that were preventing bookmark engine from starting up properly
2008-06-09 16:19:58 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
a1c5da3eeb
Renamed bookmarkeEngine methods so they make more sense with the new sharing model, e.g. updateAllIncomingShares instead of syncMounts.
2008-06-09 15:27:09 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
6ad669df96
Merged
2008-06-09 12:13:03 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
dfdff82d82
The folder annotation for outgoing shared folders is now a string containing the username of the person the folder is being shared with. Also moved to using const strings in bookmark-menu-overlay.js.
2008-06-09 12:12:51 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
8573f956e3
Merged
2008-06-09 11:49:04 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
b6a2028a3c
Fixed my code so that BookmarkEngine._sync() now works correctly to call Engine._sync() and BookmarkEngine.syncMounts(), asynchronously. Added in some TODO comments about what's going to happen in the next round of refactoring.
2008-06-09 11:48:52 -07:00
Atul Varma
53f7206dec
Just added a few semicolons that js2-mode warned me about.
2008-06-09 09:45:55 -07:00
Atul Varma
3bb8a88ccf
Added more tests to test_async.js and documented them a bit.
2008-06-07 00:34:33 -07:00
Atul Varma
ce74084744
Fixed an inaccuracy in the async.js test suite.
2008-06-07 00:22:57 -07:00
Atul Varma
394167a10a
Added a unit test suite for modules/async.js.
2008-06-06 21:40:30 -07:00
jonathandicarlo@localhost
f26ddc5f76
Added license block and explanatory comments to bookmarks.js
2008-06-06 19:28:01 -07:00
jonathandicarlo@localhost
98d1bf05f4
Made BookmarkEngine.sync() responsible for calling BookmarkEngine.syncMounts (to get the incoming shared bookmark folder contents), eliminating the FIXME that previously had this being called from special-case code in WeaveSvc.sync().
2008-06-06 19:22:23 -07:00
chris@h-194.office.mozilla.org
30795b78b9
merging branches
2008-06-06 17:58:02 -07:00
chris@h-194.office.mozilla.org
062c813474
- Adding temporary button to load account creation form for sm-labs01 while work continues on the first run process.
...
- Minor reorganization of preferences, namely, moving the advanced debugging tools into a sub-dialog and ensure each have a descriptive confirmation prompt.
2008-06-06 17:57:16 -07:00
Atul Varma
29434b62a4
Merged changes.
2008-06-06 17:46:46 -07:00
Atul Varma
49ad148d83
In async.js, renamed 'object' to 'thisArg', which makes the code clearer and easier to understand.
2008-06-06 17:46:34 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
473352178e
Resolved conflicts with Chris's changes (to use the username, unhashed, as the name of the server-side sharing directory)
2008-06-06 17:43:15 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
3db8dcb84c
Moved _createShare and _share() from engines.js to BookmarkEngine class in engines/bookmarks.js. The identity of the folder to be shared is now passed from the share dialog box (share.xul) into BookmarkEngine._share().
2008-06-06 17:33:44 -07:00
chris@h-194.office.mozilla.org
a800ba8d31
- turning in the bookmarks sharing UI, although it's still not fully functional.
2008-06-06 14:40:35 -07:00
chris@h-194.office.mozilla.org
d7c750f0f9
- this check in will break everyone temporarily, as it involves the changes necessary to shift us from sha1(email) to usernames, and to enable sharing on the server.
...
- we are also changing the default preferences on the trunk to point to the new staging server at https://sm-labs01.mozilla.org:81 that has been modified to support usernames
- everyone will need to create a new account and this will be streamlined within the startup function, which will now kick off on first run (we'll check in the updated setup wizard shortly)
- this checkin also cleans up a number of strings
2008-06-06 14:18:50 -07:00
Anant Narayanan
4298abcb95
Fix linux builds (bug 433922, r=thunder)
2008-06-05 17:21:53 -07:00
Myk Melez
f096ecbbf4
bug 437523: fix NS_ERROR_FAILURE on nsIJSON.decode in JsonFilter_afterGET
2008-06-05 16:25:55 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
12ae1f3d1c
Re-disabled test_xmpp_simple.js; it shouldn't be run without a local jabber server (and it wasn't, until I accidentally comitted my local change enabling the test.
2008-06-05 12:18:16 -07:00
Dan Mills
b32b7d3549
merge upstream changes
2008-06-05 23:11:20 +09:00
Dan Mills
c2081e7fb9
create objects for the various server resources (these will later abstract away the actual resources); fix a bug where we were reversing the order of resource filters on every GET request
2008-06-05 16:17:32 +09:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
a8012cad1d
Merged
2008-06-04 20:30:56 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
e578f11c10
The menu icon of a bookmark folder now changes when that folder is being shared out with others.
2008-06-04 20:30:37 -07:00
Dietrich Ayala
406a97aee2
imported patch xmpp-transport-fault-tolerance-and-test
2008-06-04 18:34:37 -07:00
Dietrich Ayala
ecbfb93933
xmpp-stream-error-handling
2008-06-04 17:36:37 -07:00
Dietrich Ayala
3d3869c8a5
[mq]: xmpp-reconnect
2008-06-04 17:00:02 -07:00
Dietrich Ayala
3e4256b313
[mq]: xmpp-disconnect
2008-06-04 14:02:47 -07:00
Myk Melez
b3bf939ec2
bug 436696: make sure we pass a valid URI to nsITaggingService::getTagsForURI when the bookmark record doesn't include a URI so the method doesn't throw and hork bookmarks sync
2008-06-04 13:40:53 -07:00
Dietrich Ayala
6805970f17
[mq]: xmpp-cleanup
2008-06-04 12:14:28 -07:00
Dan Mills
f7003493a7
Bug 436303: Fix misspelling
2008-06-04 23:07:07 +09:00
Atul Varma
d3d41cc696
Added a basic testing suite for engines/passwords.js. It currently only tests _hashLoginInfo() and PasswordSyncCore._itemExists().
2008-06-03 18:37:36 -07:00
Atul Varma
3a9ddcad85
In passwords.js, turned _hashLoginInfo() into a module-level function.
2008-06-03 16:56:58 -07:00
Atul Varma
d8420aaf50
Minor js2-mode warning fixes.
2008-06-03 15:14:27 -07:00
Atul Varma
e5bb509e17
Removed unused code from cookies.js, fixed a few js2-mode warnings.
2008-06-03 14:49:22 -07:00
Atul Varma
b74958a214
Moved all tab-syncing code to modules/engines/tabsjs.
2008-06-03 14:45:53 -07:00
Atul Varma
daf3be7564
Moved all form-syncing code into modules/engines/forms.js.
2008-06-03 14:20:51 -07:00
Atul Varma
1e0a1d1e06
Moved all password-syncing code into modules/engines/passwords.js.
2008-06-03 14:08:53 -07:00
Atul Varma
e2ce660c53
Moved all history-related functionality into modules/engines/history.js.
2008-06-03 13:56:16 -07:00
Atul Varma
f365f924cf
Re-removed cookie-related changes that were accidentally re-added by c1a58b24679c and/or 5a49daf87c94.
...
Also moved all bookmark syncing logic into modules/engines/bookmarks.js.
2008-06-03 12:38:48 -07:00
Myk Melez
d635f80fdc
remove unused _json property from TabSyncCore
2008-06-03 11:50:08 -07:00
Myk Melez
690e2b800c
merge
2008-06-03 11:43:07 -07:00
Myk Melez
07ba8ea83e
bug 434817: sync tabs
2008-06-03 11:32:59 -07:00
Atul Varma
ada0204cac
Moved all code related to the syncing of cookies--e.g. CookieStore, CookieTracker, CookieEngine, CookieSyncCore--into their own file at modules/engines/cookies.js. I'll be doing the same to the other engines shortly.
...
This helps with code organization--all the logic for dealing with a particular data type is now in one place--and should also make it easier to write unit/regression tests.
2008-06-03 11:11:44 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
c3c783a630
Merged changes
2008-06-02 20:14:00 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
8dd60a75cb
Bookmark share now leaves an annotation ('weave/share/sahred_outgoing' = true or false) on a bookmark folder to note whether it's being shared or not; when a folder is being shared, the menu item in the folder submenu changes to 'Stop sharing this folder'.
2008-06-02 20:13:46 -07:00
Myk Melez
2d0bcb7a9b
minor typo fixes
2008-06-02 15:24:52 -07:00
Dan Mills
d526a56d57
log stack traces from sync exceptions
2008-06-02 13:02:04 +09:00
Dan Mills
5eac28e81c
change remote store to keep track of identity names/aliases and fetch the objects from the id manager
2008-06-02 11:10:11 +09:00
Dan Mills
2daecc268e
move json and crypto into remote resource 'filters', so the engine doesn't have to explicitly encode/decode anything. note--known regression: filters will not use the encryption algorithm in the status file
2008-05-30 20:43:55 -07:00
Dan Mills
5ac797d47a
branch merge
2008-05-30 18:54:57 -07:00
Dan Mills
f36b66b136
only require the .rc file on windows
2008-05-30 18:53:07 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
f9c2868a77
Merged changes.
2008-05-30 18:20:02 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
5ed074f466
Made the bookmark-share dialog box display the name of the folder you selected; also, the 'Share This Folder' menu text is now pulled from share.properties for easier i18n.
2008-05-30 18:19:47 -07:00
Dan Mills
0640f244d6
format exception correctly when an engine throws during sync
2008-05-30 17:40:08 -07:00
Dan Mills
edff2a32aa
make some async generator errors clearer
2008-05-30 17:38:27 -07:00
Atul Varma
2271e34077
Added a simple test to test_fault_tolerance.js that wasn't working before, but now is, and I don't know why...
2008-05-30 17:02:25 -07:00
Atul Varma
b9a3944d7e
Added a trivial appender to faultTolerance.js.
2008-05-30 16:32:06 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
7ded706053
Fixed broken unit test test_cookie_store.js
2008-05-30 13:52:39 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
e9a097b252
Merged changes
2008-05-30 11:11:02 -07:00
Atul Varma
243f1bce21
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
8b2854d7e6
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
4343b5c692
Merged
2008-05-29 11:18:16 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
6031b5a316
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
88bafd3245
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
c00c81efab
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
c8b1c91b51
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
ecd321f34b
bump version constant
2008-05-24 18:56:42 -07:00
Dan Mills
c682a760f9
remove some debugging output, fix some remaining array detection code
2008-05-24 17:30:22 -07:00
Dan Mills
fd0eac8eb3
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
fe48398743
don't attempt to get a symkey if encryption is set to 'none'
2008-05-23 19:57:38 -07:00
Dan Mills
cb84d724f5
regenerate the engine id when the engine's pbe id changes
2008-05-23 19:47:25 -07:00
Dan Mills
29fc114d14
branch merge
2008-05-23 17:58:08 -07:00
Dan Mills
289a78e226
merge
2008-05-23 17:52:10 -07:00
Dan Mills
8dbb0f835c
whitespace police
2008-05-23 17:50:54 -07:00
Dan Mills
1cfce7d1d1
don't require same index for folder 'likeness'
2008-05-23 17:50:24 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
42f471fcd3
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
04c6dda2c2
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
0b8c18a3c7
Fixed bug 435103 ( https://bugzilla.mozilla.org/show_bug.cgi?id=435103 )
2008-05-23 12:08:03 -07:00
Atul Varma
7376e01e44
Routine merge of double branches.
2008-05-23 11:06:45 -07:00
Atul Varma
ba3e131c29
Fixed a variety of style issues and minor warnings raised by js2-mode.
2008-05-23 11:05:42 -07:00
Anant Narayanan
85746789b0
Correct more syntax errors (super) in trackers.js
2008-05-23 11:01:32 -07:00
Anant Narayanan
e94def6b15
Correct syntax error in trackers.js
2008-05-23 10:28:43 -07:00
Anant Narayanan
7d0ca60e94
Fix indentation
2008-05-23 09:59:35 -07:00
Anant Narayanan
45c306c019
Add tracking support to FormsEngine. Bug #435319 , r=thunder
2008-05-23 09:29:26 -07:00
Dan Mills
ef799c5a38
fix build regression in windows from linux fixes
2008-05-22 18:52:52 -07:00
Anant Narayanan
226ed028e3
Tracking support for HistoryEngine. Bug #435321 , r=thunder
2008-05-22 18:37:24 -07:00
Anant Narayanan
1743ffc42e
Correct typo in BookmarksTracker
2008-05-22 18:06:47 -07:00
chris@h-124.office.mozilla.org
68401ecb36
resolving merge conflicts
2008-05-22 16:52:51 -07:00
chris@h-124.office.mozilla.org
348ed6d732
replacing minefield logo with weave logo
2008-05-22 16:04:56 -07:00
Anant Narayanan
53d8c30531
Add support for engine 'scores'. Bug #434812 , r=thunder
2008-05-22 15:58:29 -07:00
Anant Narayanan
36482f8bef
Sync form data: bug #434818 , r=thunder
2008-05-22 15:36:44 -07:00
chris@h-124.office.mozilla.org
7ca2d67bc7
cleaning up strings in sync prefs
2008-05-22 14:15:35 -07:00
Atul Varma
30327e66a7
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
26b658a127
Bug 419121 - Weave chokes on microsummaries (r=thunder)
2008-05-22 11:41:05 -07:00
Justin Dolske
8df51016ac
Bug 433762 – Sync stored passwords. r=thunder
2008-05-21 18:09:19 -07:00
Justin Dolske
1fb1cf3fa3
Cleanup some trivial nits with cookie (whitespace and function name).
2008-05-21 17:53:35 -07:00
Anant Narayanan
d0ee5b17d4
Allow login & sync when encryption is off
2008-05-21 16:28:23 -07:00
Anant Narayanan
ba0fa55299
Typo in log message
2008-05-21 11:16:39 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
a020c7c1bc
Merged my changes with Anant's changes
2008-05-20 18:24:49 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
9340b3c431
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
aea75cbd20
Made cookie-sync sync only persistent cookies, drop single-session cookies. (Needs testing.)
2008-05-20 18:14:18 -07:00
Anant Narayanan
203ee08ca3
Patching to support building component on Linux.
2008-05-20 16:53:14 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
7793fe3db1
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
2c39623eab
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
9535362dc5
more windows (msvc) build fixes
2008-05-14 17:15:55 -07:00
Dan Mills
779a934ce3
windows build fixes for crypto component
2008-05-13 18:37:07 -07:00
Dan Mills
adb0b31cb6
temporarily disable xmpp unit test
2008-05-12 10:18:20 -07:00
Dan Mills
2aa793313d
merge with jono's changes
2008-05-12 10:14:15 -07:00
Dan Mills
e5e1d00a3f
sync bookmark descriptions
2008-05-12 10:11:07 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
11d82ab309
Created a readme for using the XMPP client module.
2008-05-08 18:50:12 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
7bd1d2d781
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
b604dfc445
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
c2d09e5829
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
90053f0c73
Oops, I miscapitalized XmppClient in the export statement -- fixed.
2008-04-30 17:08:39 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
2fec756b19
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
e8b52e9413
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
8fda2ee763
Merged my changes with the main repository.
2008-04-30 16:27:52 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
0251715f68
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
d205f55def
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
2689bfa5b9
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
63af6c5dbd
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
6670eb2948
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
5a2d0451db
add engine registration service; use global id service in service.js
2008-04-14 18:53:35 -07:00
Dan Mills
83fd7d6261
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
62da55a446
Implemented cookieStore.editCommand().
2008-04-07 11:53:55 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
055836a4ee
Semicolon was missing in cookieStore.wrap()
2008-04-04 12:09:04 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
de75398691
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
02171a4c9b
Merged changes from Dan
2008-04-04 10:50:21 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
185294a6e6
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
99f4ac9084
rethrow exception when applyCommands fails; merge changes from jono
2008-04-03 17:18:38 -07:00
Dan Mills
edd4329c4a
rethrow exception when applyCommands fails
2008-04-03 17:16:22 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
acbff936ba
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
27c6454920
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
d1bd5e5aaa
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
8df3c78b61
bump version
2008-04-01 23:44:39 -07:00
Dan Mills
a4b0ed4a6e
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
f6dd9c5d7f
Updated the comment in CookieStore.editCommand.
2008-04-01 19:16:27 -07:00
jono@jono-gibbon-laptop
0640b8474c
Removed some lines that were only in there for debugging purposes.
2008-04-01 19:12:03 -07:00
jono@jono-gibbon-laptop
4ad1b9c94f
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
b405d397ce
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
609b043699
Fixed a couple of syntax errors that were preventing weave from starting
2008-04-01 16:36:08 -07:00
jono@jono-gibbon-laptop
640267d614
Merged changes and resolved conflicts between my cookie stuff and r282.
2008-04-01 14:46:29 -07:00
Dan Mills
b8cca5d3a9
bump version
2008-03-31 17:46:29 -07:00
Dan Mills
e4254ee7bd
fix tag sync
2008-03-31 17:07:40 -07:00
Dan Mills
27580b967a
hide share bookmarks menu item; clean up ui init code
2008-03-31 16:55:54 -07:00
Dan Mills
1cbfe5b3e3
add warnings to reset client/server data buttons in the prefs
2008-03-31 16:24:43 -07:00
Dan Mills
a5bb6bf61f
[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
2028f0a69d
bump storage format version to cause a server wipe
2008-03-30 08:52:49 -07:00
Dan Mills
8f9f414efb
bump version
2008-03-30 08:42:35 -07:00
Dan Mills
acdfa5a921
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
18f1113dcf
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
e7a26a8229
show 'sync now' menuitem by default
2008-03-29 00:22:28 -07:00
Dan Mills
3ba627c585
fix the bookmarks likeness comparator (a.data undefined bug)
2008-03-29 00:00:16 -07:00
Dan Mills
54e61dbe6b
ignore 'type' properties in edit commands; fix history sync
2008-03-28 22:55:23 -07:00
Dan Mills
78041c490b
fix 'clear logs' on windows
2008-03-28 19:36:11 -07:00
Dan Mills
fc6202f2e2
bump version
2008-03-28 03:27:05 -07:00
Dan Mills
eaca70f4d9
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
62e963c8b9
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
62a6461323
add a 'clear logs' button to the log window
2008-03-27 01:05:21 -07:00
Dan Mills
4517e592d0
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
cfbb3a75b1
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
1b3916bc83
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
cfae90a73a
fix typo
2008-03-26 23:12:58 -07:00
Dan Mills
ebf0b6a973
make applyCommands asynchronous
2008-03-26 23:11:15 -07:00
Dan Mills
24ba577b6f
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
7ec09f1317
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
0a4be048f7
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
86d8009d14
lazy-load service
2008-03-25 13:55:34 -07:00
Dan Mills
5b6dc30300
work with all exception objects, whether we can modify them or not
2008-03-24 19:08:43 -07:00
Dan Mills
aa012aa6cf
bump version
2008-03-24 16:05:02 -07:00
Dan Mills
6c82a158bd
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
8541c2d22a
bump version; bump storage format version
2008-03-21 16:07:44 -07:00
Dan Mills
233a0d648d
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
99618dc083
bump version
2008-03-20 14:59:59 -07:00
Dan Mills
22ef0e035f
bookmarks syncCore: remove actions never qualify for 'likeness'
2008-03-20 14:59:20 -07:00
Dan Mills
2739b301fc
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
6d055afeb8
bump version
2008-03-19 17:31:45 -07:00
Dan Mills
fd86363364
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
16920cd2ae
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
07c4bbd0dc
bump version
2008-03-12 23:07:04 -07:00
Dan Mills
732f6b234c
workaround for services.m.c 500 error on some GET requests
2008-03-12 23:06:28 -07:00
jono@jono-gibbon-laptop
4c23a0a589
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
cdbd7976e2
add missing async.js module
2008-03-11 11:47:54 -07:00
jono@jono-gibbon-laptop
a2c4928bc5
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
075381eca7
fix full (first) upload brokenness
2008-03-07 04:49:56 -08:00
Dan Mills
48733f699a
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
4bfb8c52e7
version bump
2008-03-07 01:57:18 -08:00
Dan Mills
941dd24c3b
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
0ed61df581
don't sync bookmarks/history unless they have been enabled
2008-03-05 18:36:58 -08:00
Dan Mills
cc0892b5ff
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
c1f8acb964
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
288aaae471
fix openssl args mangling
2008-02-19 21:01:11 -08:00
Dan Mills
1817c866fe
version bump
2008-02-19 20:53:45 -08:00
Dan Mills
350adaed51
use a scriptableinputstream to correctly read openssl output
2008-02-19 20:53:01 -08:00
Dan Mills
5efa6b7b5f
flesh out openssl code; still needs more work
2008-02-19 11:39:39 -08:00
thunder@h-132.office.mozilla.org
093fac248a
move openssl() into crypto object so it can use the logger there. up version
2008-02-18 11:18:04 -08:00
Dan Mills
261ddf2a9e
clean up prefs; add logging prefs; check weave is enabled on scheduled sync
2008-02-13 16:07:11 -08:00
Dan Mills
d6b5a9fc29
put utility functions in an object to avoid namespace pollution
2008-02-13 14:30:44 -08:00
Dan Mills
d5c5e064e7
create user directories when they don't exist - good for personal webdav servers
2008-02-08 01:03:45 -08:00
Dan Mills
ec4aa0abba
fix openssl binary path on windows
2008-02-05 16:15:43 -08:00
Dan Mills
e6eda21f32
branch merge
2008-02-05 14:16:38 -08:00
Dan Mills
731575d8bf
add openssl support
2008-02-05 14:15:53 -08:00
Myk Melez
e6c482d3b5
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
14f74078bb
remove obsolete xpcom component code
2008-01-23 15:35:11 -08:00
Dan Mills
fac152858b
bump version
2008-01-22 22:46:39 -08:00
Dan Mills
c967d1b41f
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
062ba11eda
bump version
2008-01-07 20:20:54 -08:00
Dan Mills
a3b17ebe6a
bump version
2008-01-07 16:29:30 -08:00
Dan Mills
d4392ac825
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
dd6341464b
bump version in constants.js
2007-12-28 16:34:28 -08:00
Dan Mills
23affe6333
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
c00d20a783
move xxxtea.js -> xxtea.js (typo)
2007-12-27 12:50:51 -08:00
Dan Mills
2883ed0621
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
7e968fc10e
remove debug statements
2007-12-26 16:11:19 -08:00
Dan Mills
79688a1c16
Pull xxxtea code into modules/; fix passphrase bug in the login dialog
2007-12-26 16:10:23 -08:00
Dan Mills
a3cc4e318d
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
c3f4b08ffc
Fix typo in last commit; use asterisks in place of auth header
2007-12-26 14:51:52 -08:00
Dan Mills
6dfb3eae28
Bug 409673: Don't log the authentication header
2007-12-26 14:49:03 -08:00
thunder@daniel-millss-macbook-pro-15.local
539fdecb0f
fix getTagsForURI call (API changed); bump version
2007-12-24 14:47:37 -08:00
Dan Mills
c2c6f2597a
version bump
2007-12-21 18:38:04 -08:00
Dan Mills
4959c7beaf
alert errors when the passphrase is empty
2007-12-21 18:05:01 -08:00
Myk Melez
3951dfad84
clean up preferences XUL and make Create Account button work on Windows and Linux
2007-12-21 17:41:26 -08:00
Dan Mills
e320b490d8
version bump
2007-12-21 16:51:14 -08:00
Dan Mills
c713a81236
process GUID changes *before* anything else
2007-12-21 16:50:32 -08:00
Dan Mills
21f147b7bb
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
c60c01bca7
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
9e1b175737
UI clean up and refactoring
2007-12-21 13:34:43 -08:00
Myk Melez
f131be79e2
make prefpane localizable
2007-12-21 01:09:08 -08:00
Myk Melez
7f05e503c8
make login dialog localizable
2007-12-21 00:29:54 -08:00
Myk Melez
ec2d19faf6
make log dialog localizable
2007-12-21 00:11:50 -08:00
Myk Melez
633faa5bac
make wizard localizable
2007-12-20 23:31:29 -08:00
Myk Melez
952e48c556
make the browser overlay (sync.xul) localized and localizable
2007-12-20 17:19:36 -08:00
cbeard@Macintosh.local
e954cf7ddf
merging
2007-12-20 15:44:49 -08:00
cbeard@Macintosh.local
1a0d0f7773
sorry about the tabs! lots of refactoring of the UI bits
2007-12-20 15:43:18 -08:00
Dan Mills
28e2504a7f
implement firstrun/updated pages
2007-12-20 15:35:19 -08:00
Dan Mills
232f7951a9
change prefs to live under extensions.weave
2007-12-20 14:46:12 -08:00
Dan Mills
fb020f0577
ui / prefs fixes
2007-12-20 12:18:41 -08:00
Dan Mills
bdb1273a28
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
2cc8662f0f
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
6782f99ad3
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
516dfc2930
some more cleanup/refactoring; add history engine/core/store (history sync\!)
2007-12-14 18:07:25 -08:00
Dan Mills
f9df1f57a8
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
e44b47a493
more and more refactoring: split weave module into multiple files (finally!)
2007-12-10 21:38:53 -08:00
Dan Mills
e5050adc9c
refactoring: remove log4moz component, use it as a js module instead
2007-12-10 19:47:11 -08:00
Dan Mills
5de0bd93c4
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
f55a31870a
refactoring more stuff out of the service
2007-12-01 22:57:57 -08:00
thunder@daniel-millss-macbook-pro-15.local
7d7b9e3717
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
875a683faf
fix bug 406067; more refactoring; speed up reconciliation
2007-11-29 17:14:10 -08:00
Dan Mills
e2b20068b4
more refactoring
2007-11-28 14:47:40 -08:00
thunder@daniel-millss-macbook-pro-15.local
65efcd5816
refactoring and cleanup
2007-11-27 18:26:21 -08:00
thunder@h-125.office.mozilla.org
239d02823c
sync -> weave in chrome URIs; fix broken bookmarks service attribute calls
2007-11-26 13:45:46 -08:00
Dan Mills
87ffe5695e
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
8f1a6d1763
use btoa instead of external base64 library
2007-11-14 17:09:09 -08:00
thunder@h-125.office.mozilla.org
2097c793ae
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
bfe6a04b7c
encryption support, woo\!
2007-11-13 21:37:20 -08:00
Dan Mills
5e7ca6fd00
add encryption library; add login dialog
2007-11-13 15:04:55 -08:00
thunder@daniel-millss-macbook-pro-15.local
fabe8a4f91
support new services service (rework auth dance)
2007-11-12 21:23:07 -08:00
Dan Mills
10797c184e
fix deepEquals to correctly compare non-objects
2007-11-06 17:09:22 -08:00
Dan Mills
1ae22980da
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
f4063917d0
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
6cd2dcc4f8
minor changes, version bump
2007-10-29 17:45:02 -07:00
Dan Mills
5c0e1acd51
partial fix for deleting bookmark trees
2007-10-22 11:27:55 -07:00
thunder@thunder-mbp.pavlov.net
6e1eec843c
testing possible fix for deserializing feeds with empty site urls
2007-10-19 19:57:39 -07:00
Dan Mills
8e716dce30
don't die when livemarks don't have a site/feed uri set
2007-10-19 16:56:36 -07:00
Dan Mills
83781b9914
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
47edd251e7
better check for whether we have a token; log event handler events
2007-10-18 20:29:17 -07:00
Dan Mills
d1a7c2c9db
Fix for logout/re-login (no, really!)
2007-10-18 10:00:09 -07:00
Dan Mills
83dcf8a934
DAVCollection refactoring
2007-10-18 03:13:35 -07:00
Dan Mills
9c582b26b9
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
028733fdcf
add lots more logging output to DAVCollection
2007-10-17 13:49:51 -07:00
Dan Mills
e4b5cd0af2
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
0fbbdb858d
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
2c83f59126
fix same-parent requirement for command likeness
2007-10-16 16:49:46 -07:00
cbeard@h-135.office.mozilla.org
e37ed78cbd
fix to allow subsequent logins
2007-10-16 15:47:54 -07:00
Dan Mills
306473cb72
baseURL -> userURL
2007-10-16 15:36:26 -07:00
Dan Mills
6c22ec8c4f
merge
2007-10-16 15:29:53 -07:00
Dan Mills
974bcd67cb
fix logout/re-login
2007-10-16 15:29:31 -07:00
cbeard@h-135.office.mozilla.org
f6026320d6
myk's patch to catch and ignore a microsummary exception
2007-10-16 15:29:02 -07:00
Dan Mills
4a15101d19
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
d7735d64e5
move account 'creation' into the service
2007-10-16 01:45:57 -07:00
Dan Mills
2cd9ed32cc
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
41fb97e1de
hook up resetServer to UI
2007-10-15 20:07:00 -07:00
Dan Mills
2b7699609d
only run generatorDone if there's an onComplete handler
2007-10-15 20:04:02 -07:00
Dan Mills
0203f6800c
new xpt from resetServer idl changes
2007-10-15 20:01:56 -07:00
Dan Mills
6dd8a95935
add resetServer to idl
2007-10-15 20:00:42 -07:00
Dan Mills
756c89fabd
add resetServer, fix schedule pref
2007-10-15 19:59:54 -07:00
Dan Mills
7b3006a7bd
listen to sync.enabled pref and enable/disable auto sync
2007-10-15 18:45:02 -07:00
cbeard@h-135.office.mozilla.org
72cdaf8806
revised prefpane and workflows to get us to a more public test of sync
2007-10-15 18:26:39 -07:00
Dan Mills
72324bab89
add timer support, needs cbeard's new prefs
2007-10-15 18:14:44 -07:00
Dan Mills
3c793bce11
one more conflict detection fix
2007-10-15 17:06:13 -07:00
Dan Mills
e721b3a8a3
various backendy fixes
2007-10-15 16:52:43 -07:00
Dan Mills
ed1fadad51
go go synchotron!
2007-10-15 15:31:15 -07:00
Dan Mills
37220bc235
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
6c2aa6b5c1
fix recursive function bug
2007-10-12 22:58:38 -07:00
Dan Mills
cd475eed65
fix guids reset method
2007-10-12 18:44:58 -07:00
Dan Mills
912d7f62d4
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
78e7c3a56a
minor cleanup
2007-10-12 16:10:42 -07:00
Dan Mills
6f3c5c748f
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
c29f1027f0
calculate server deltas based on server latest -> final state diff. fix some logger calls.
2007-10-12 13:29:33 -07:00
Dan Mills
d6bf897213
tri-license log4moz
2007-10-10 17:12:20 -07:00
Dan Mills
4cb0f05aed
additional logging; use __proto__ hack for inheriting object properties in subclassed Appenders
2007-10-10 17:08:58 -07:00
Dan Mills
6dc912f464
log the logger name; add a timestamp to logs
2007-10-10 14:02:56 -07:00
thunder@thunder-mbp.local
4b4bf77bbe
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
70f06698d3
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
4df99e1fbd
* 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
5fcd297889
* 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
88d6ddc432
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
7f9b691df6
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
d05e5bd087
fleshing out of the setup wizard
2007-10-03 18:00:16 -07:00
Dave Camp
c08da260cd
sync keywords
2007-10-02 15:30:20 -07:00
Dave Camp
36bc417b93
simple tag syncing
2007-10-02 15:07:19 -07:00
Dan Mills
582a630e8d
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
5249e19d92
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
7379d6ce30
sync engine fixes; logging improvements; try to ensure that property keys are always strings
2007-09-28 03:02:15 -07:00
Dan Mills
1ee32be4b4
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
fc5f98b819
activity log fixes
2007-09-26 19:26:29 -07:00
Dan Mills
c71d476a03
activity log fixes
2007-09-26 19:25:55 -07:00
cbeard@h-135.office.mozilla.org
68a1f1a4cc
reconciliation of changes between branches.
2007-09-26 17:45:54 -07:00
cbeard@h-135.office.mozilla.org
c1801bee80
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
656fa5ee5a
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
afd2a6c01f
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
c8e241c737
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
3e3e800025
- super fun spinning throbber goodness!
2007-09-25 16:33:23 -07:00
Dan Mills
2f70c2abff
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
425134c065
- 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