[tahoe-lafs-trac-stream] [Tahoe-LAFS] #1634: TypeError due to "size" being None in pyfilesystem+dokan

Tahoe-LAFS trac at tahoe-lafs.org
Sun Sep 21 01:57:27 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):

 My initial preference is that tahoe returns a '"size":None'. My intuition
 is that this provides a different sort of information than simply removing
 the key.

 It seems to me that if a third party asks for a key:value and gets
 ``KeyError`` they should have guarantees about what that means.

 If it sometimes means that the requested metadata hasn't been collected
 for the file-of-interest, and at other times it means "that sort of
 metadata doesn't exist" then they'll learn less.

 So, a query of a file's "size" attribute (which is sometimes known) should
 provoke a different response than a query of a file's "galactic
 coordinate" (which is never known).

 So, all that to say, I prefer to not omit the key.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1634#comment:14>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


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