[tahoe-lafs-trac-stream] [Tahoe-LAFS] #1634: TypeError due to "size" being None in pyfilesystem+dokan
Tahoe-LAFS
trac at tahoe-lafs.org
Tue Sep 23 16:57:46 UTC 2014
#1634: TypeError due to "size" being None in pyfilesystem+dokan
-------------------------+-------------------------------------------------
Reporter: zooko | Owner: Zancas
Type: defect | Status: new
Priority: major | Milestone: 1.11.0
Component: code- | Version: 1.9.0
frontend-web | Keywords: pyfilesystem dokan error webapi
Resolution: | docs mutable test-needed
Launchpad Bug: |
-------------------------+-------------------------------------------------
Comment (by Zancas):
We've changed our minds.
It turns out that the codebase has a well-established convention of
omitting key:value JSON metadata in cases where the LASS (Least Authority
Storage System) doesn't know the relevant value.
Therefore the new fix is to implement the fix warner mentioned above, i.e.
only include a "size" key if childnode.get_size() is not None, on _this_
line:
https://github.com/tahoe-lafs/tahoe-
lafs/blob/d7aef0cffb2a28465f75c883128e99045dadcb82/src/allmydata/web/directory.py#L882
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1634#comment:16>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list