diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2026-07-10 10:09:58 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2026-07-10 10:09:58 -0700 |
| commit | 0802a90657ade00851e3d798fc80682438a091fa (patch) | |
| tree | 8d171f83714aafb64ce9bd1f0bb0b80a68d85d7c /cmd | |
| parent | c82ba6624a184e5d17b9e3857ac908f40b22a191 (diff) | |
Close resource and info fork writers after upload
UploadHandler and UploadFolderHandler opened the resource and info fork
writers but only ever closed the data fork writer. On the OS-backed file
store this leaked a descriptor per uploaded file; on a backend that only
commits on Close (such as an object store, modeled by MemFileStore) the fork
data was silently dropped entirely.
Track the fork writers as closers and close them after the transfer completes,
before renaming the data fork into place. Add a MemFileStore-backed regression
test that fails without the fix.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions