touka/webdav
google-labs-jules[bot] 0ed9fa3290 feat(webdav): Enhance and Harden WebDAV Submodule
This commit introduces a simplified high-level API for the WebDAV submodule and fixes a comprehensive set of critical bugs, security vulnerabilities, and spec-compliance issues.

Key enhancements include:
- A new, user-friendly API (`webdav.Serve`, `webdav.Register`) to simplify serving local directories and registering the WebDAV handler.
- An updated example (`examples/webdav/main.go`) demonstrating the new, cleaner API.

Bug fixes and hardening:
- **Data Integrity:** Fixed a data-loss bug in `memFile.Write` where overwriting parts of a file could truncate it.
- **Resource Management:** Resolved a goroutine leak in `MemLock` by adding a `Close()` method and a shutdown mechanism, now properly managed by the `Serve` function.
- **Recursive Deletion:** Implemented correct recursive deletion in `MemFS.RemoveAll` to ensure proper cleanup.
- **Locking:** Fixed a bug in `MemLock.Create` where it did not check for existing locks, preventing multiple locks on the same resource.
2025-12-11 08:14:35 +00:00
..
easy.go feat: add native WebDAV submodule with usability helpers and fixes 2025-12-11 07:33:34 +00:00
easy_test.go feat: add native WebDAV submodule with usability helpers and fixes 2025-12-11 07:33:34 +00:00
memfs.go feat(webdav): Enhance and Harden WebDAV Submodule 2025-12-11 08:14:35 +00:00
memlock.go feat(webdav): Enhance and Harden WebDAV Submodule 2025-12-11 08:14:35 +00:00
osfs.go feat: add native WebDAV submodule with usability helpers and fixes 2025-12-11 07:33:34 +00:00
webdav.go feat: add native WebDAV submodule with usability helpers and fixes 2025-12-11 07:33:34 +00:00
webdav_test.go feat: add native WebDAV submodule 2025-12-10 22:35:33 +00:00