Skip to content

v0.30.3

Latest

Choose a tag to compare

@bigcat88 bigcat88 released this 11 Aug 07:24
· 4 commits to refs/heads/main since this release

Added

  • FsNode.etag_unquoted returning the entity tag without the double quotes the server wraps it in, for comparing or storing the bare value. FsNode.etag keeps what the server sent, so it can still be passed to an If-Match/If-None-Match header unchanged. #448 Thanks to @kyteinsky

Fixed

  • FsNode.etag is always a string now; trashbin entries used to yield None, because the server sends an empty <d:getetag/> there. #448
  • PROPFIND property lists are no longer mutated in place. get_propfind_properties() and both trashbin_list() implementations extended the shared PROPFIND_PROPERTIES constant with +=, so it grew on every call (7 entries per call against servers advertising files.locking, 3 per trashbin_list()). Long-running clients ended up sending multi-megabyte PROPFIND bodies that could exhaust the server's workers. Both property constants are now immutable tuples, so this class of bug cannot come back. #453 Thanks to @ciberkids