[tahoe-dev] [tahoe-lafs] #833: reject mutable children when *reading* an immutable dirnode

tahoe-lafs trac at allmydata.org
Sat Jan 23 05:08:25 PST 2010


#833: reject mutable children when *reading* an immutable dirnode
------------------------------------------------------------------------------------+
 Reporter:  warner                                                                  |           Owner:  davidsarah
     Type:  defect                                                                  |          Status:  assigned  
 Priority:  critical                                                                |       Milestone:  1.6.0     
Component:  code-dirnodes                                                           |         Version:  1.5.0     
 Keywords:  integrity forward-compatibility backward-compatibility confidentiality  |   Launchpad_bug:            
------------------------------------------------------------------------------------+

Comment(by davidsarah):

 The changes are larger and less elegant than I'd hoped, and I
 failed to resist the temptation to do some refactoring of
 test_web.py. The changes to test_web.py that are most relevant,
 i.e. excluding the refactoring, are in these functions:
 {{{
   _create_initial_children
   _create_immutable_children
   test_POST_NEWDIRURL_initial_children
   test_POST_NEWDIRURL_immutable
   test_POST_mkdir_immutable
   test_POST_mkdir_no_parentdir_initial_children
   test_POST_mkdir_no_parentdir_immutable
   test_unknown
   test_immutable_unknown
   test_deep_check
   test_mutant_dirnodes_are_omitted
 }}}
 The last of these is a new test that directly checks the
 main problem in this ticket; you may want to look at it first.

 To review the code patches, I suggest looking at interfaces.py,
 unknown.py, uri.py, dirnode.py, and nodemaker.py first.

 There are some commented-out print statements left, which I'll
 remove before preparing the final patch.

 I couldn't figure out how to tell darcs to produce a diff that
 excludes certain directories, so all-diff.txt contains the test
 and doc diffs as well.

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


More information about the tahoe-dev mailing list