[tahoe-lafs-trac-stream] [tahoe-lafs] #2081: bad error message when you give a readonly dircap as target to "tahoe cp"

tahoe-lafs trac at tahoe-lafs.org
Fri Jan 3 21:43:21 UTC 2014


#2081: bad error message when you give a readonly dircap as target to "tahoe cp"
------------------------------+-----------------------------------------
     Reporter:  zooko         |      Owner:
         Type:  defect        |     Status:  new
     Priority:  normal        |  Milestone:  undecided
    Component:  code-mutable  |    Version:  1.10.0
   Resolution:                |   Keywords:  usability error test-needed
Launchpad Bug:                |
------------------------------+-----------------------------------------

Comment (by daira):

 Note that in the traceback, the issue seems to be that `self.writecap` is
 `None` here:
 {{{
 File "/usr/lib/python2.7/dist-packages/allmydata/scripts/tahoe_cp.py",
 line 378, in get_child_target
     writecap = make_tahoe_subdirectory(self.nodeurl, self.writecap, name)
 }}}

 I would prefer to see a patch that maintained the invariant that
 `self.writecap` is not `None` whenever the node must be writeable.

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2081#comment:5>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list