[tahoe-dev] [tahoe-lafs] #607: DIR2:IMM

tahoe-lafs trac at allmydata.org
Wed Nov 18 03:03:39 UTC 2009

#607: DIR2:IMM
 Reporter:  zooko          |           Owner:  warner
     Type:  defect         |          Status:  new   
 Priority:  major          |       Milestone:  1.6.0 
Component:  code-dirnodes  |         Version:  1.2.0 
 Keywords:  newcaps        |   Launchpad_bug:        

Comment(by warner):

 I had the patch all ready to go, docs and tests and implementation, and
 then I had an epiphany: the JSON dictionary of child names+caps should be
 delivered as the *body* of the POST webapi request, rather than as the
 "children=" field of a multipart/form-data -type MIME body. This is easier
 for client-side implementors, and using form encoding feels inappropriate
 because we aren't using an HTML form to create the request anyways. Even
 HTML-embedded javascript will be using XMLHTTPRequest and a JSON encoder
 for the body rather than creating an HTML form and pressing the "submit"
 button programmatically.

 So I'm going to spend an extra day rewriting the patch with this API.

Ticket URL: <http://allmydata.org/trac/tahoe/ticket/607#comment:14>
tahoe-lafs <http://allmydata.org>
secure decentralized file storage grid

More information about the tahoe-dev mailing list