Places:Sync: Difference between revisions

Line 69: Line 69:
The format of the file to upload would most likely be a JSON serialization of the bookmarks data.  The specific format is TBD, but would probably be exactly (?) the same format used for local backups, replacing bookmarks.html.  In the delta upload case, an additional delta format would be needed.
The format of the file to upload would most likely be a JSON serialization of the bookmarks data.  The specific format is TBD, but would probably be exactly (?) the same format used for local backups, replacing bookmarks.html.  In the delta upload case, an additional delta format would be needed.


==== Protocol ====
* Protocol


In order to simplify server requirements, we would limit ourselves to GET, PUT, and (optionally?) LOCK.  GET and PUT are in HTTP 1.1, and LOCK is an optional WebDAV verb.
In order to simplify server requirements, we would limit ourselves to GET, PUT, and (optionally?) LOCK.  GET and PUT are in HTTP 1.1, and LOCK is an optional WebDAV verb.
Line 75: Line 75:
Our specific needs will depend on which flavor of online backup we wish to implement (full dump vs deltas).  In the full dump case, we'd only need PUT.  For deltas we'd need locking as well.
Our specific needs will depend on which flavor of online backup we wish to implement (full dump vs deltas).  In the full dump case, we'd only need PUT.  For deltas we'd need locking as well.


==== UE ====
* UE


One possibility is to have a minimalist preference pane or dialog with something like the following:
One possibility is to have a minimalist preference pane or dialog with something like the following:
Line 106: Line 106:


Authentication would be prompted for when sync occurs, and the user could save their user & password in the password manager for convenience.
Authentication would be prompted for when sync occurs, and the user could save their user & password in the password manager for convenience.
Additionally, we may want to add the ability to clobber the local bookmarks tree and import from the service (how?).  In the delta upload case, that would be required to avoid either server smarts, or having the user download two files.


=== Registration hooks ===
=== Registration hooks ===
946

edits