Skip to content

Changelog

Next

  • Template system:
    • feat: whole-server template system — configurable Jinja2 HTML templates for the directory browser, 401 error page, and admin pages
    • feat: template_dir config (env WEBDAV_TEMPLATE_DIR, CLI --template-dir) overrides bundled templates per file, with custom-dir-first resolution and bundled fallback
    • feat: template_failure_policy config (env WEBDAV_TEMPLATE_FAILURE_POLICY, CLI --template-failure-policy) selects fallback (default) or stop when startup validation fails; any other value is rejected at startup from the env, config file and CLI alike
    • feat: startup validation parses the developer-maintained template manifest and recursively checks extends/include dependencies for syntax errors (missing references only warn, since ignore missing and conditional extends are valid Jinja); an optional VERSION file warns when a custom tree targets a different server version
    • refactor: removed hardcoded HTML from auth.py and web_page.py, now uses templates
    • chore: removed stale asgi_webdav/static/ packaging references
    • contributed by PIC 1

2.3.0 - 20261104

  • Breaking change:
    • breaking(put): the in-memory body buffering is withdrawn and the put_buffer_max_size provider option is removed — PUT bodies stream chunk by chunk into the O_EXCL temp at all sizes (configs still carrying the key keep parsing; the parser ignores unknown keys)
  • WebDAV support:
    • perf(put): the streaming write is fused into a probe pattern mirroring GET — precheck + O_EXCL temp + first chunk in one hop, per-chunk writes as events arrive (empty mid-stream events skipped), and the final chunk closes and replaces the target in its own hop; a single-event body costs 2 hops (the ASGI body framing always appends a trailing empty event), down from ~7 — host put-4k 1.45~1.68x over the previous streaming path, and multi-chunk bodies save 3 hops
  • WebDAV support:
    • perf(get/head): fs GET drops the redundant exists() precheck and the sidecar probe (GET/HEAD responses never carry extra properties) plus the on-loop is_dir() (S_ISDIR from the same stat), and HEAD answers from a single stat — get-4k 1.19~1.28x and head-4k 1.47~1.74x across 6 host benchmark legs
    • perf(get): fuse the GET probe into one worker-thread hop — stat + open + first block read (+ close when the short read proves EOF) run in a single round trip — and ledger the response generator by file size so the final read closes the fp in its own hop; GET on files up to one block costs 1 round trip (was 4 at 2.2.1), get-4k 1.44~1.75x across 6 host benchmark legs vs 2.2.1; block-multiple files no longer emit a trailing empty chunk (aligned with the memory provider)

2.2.1 - 20261103

  • Development:
    • chore(tools): make the vm bench timeout scale with the bench matrix — the fixed 3600s ceiling was exceeded by the full GIL/FT/FT+JIT(+nojit A/B) × 9 workloads × 3 concurrencies run; the timeout is now computed from variant weights and settings, stale result tarballs are removed before each run, and a timeout reaps the guest orphan process and salvages partial results
  • WebDAV support:
    • fix(put): answer 204 when PUT overwrites an existing resource instead of a fixed 201 (RFC 4918 §9.7.1) — fs and memory providers now follow webhdfs, which already did; fs PUT error mapping follows the cause: 403 for permission, 507 only for storage exhaustion (RFC 4918 §10.6), 500 for other OS errors, and a failed rename cleans the partial temp instead of surfacing as an uncaught 500; the buffer threshold is configurable per provider as put_buffer_max_size (default 1 MiB, 0 disables buffering)
    • perf(put): buffer small PUT bodies in memory and complete the write (stat + temp file + rename) in one worker-thread hop via aiofiles.os.wrap — the temp+rename atomicity is unchanged but the per-PUT executor round trips drop from ~7 to 1, recovering the macOS APFS put-4k regression (an aborted small upload now costs zero syscalls)

2.2.0 - 20261102

  • Breaking change:
    • breaking(provider): the fs property sidecar extension is renamed from .WebDAV to .davext — custom properties stored via PROPPATCH before this release are NOT visible after upgrading and are not migrated; rename the old <name>.WebDAV files to <name>.davext manually to keep them
  • WebDAV support:
    • fix(put): abort on client disconnect — the receive loop treated http.disconnect as a normal end of body and persisted the truncated content as a complete file
      • memory: return 400 without touching the tree, an aborted overwrite keeps the old content; the body is received outside fs_lock so one slow or stalled upload can not freeze the provider for other requests
      • fs: write to a same-directory temp file and rename on completion — an aborted overwrite no longer destroys the original file, and the partial file is removed
      • webhdfs: abort the HDFS upload instead of finalizing a truncated file
      • small-body reads (parser_body, MKCOL gate): treat disconnect as a failed read (400) instead of a TypeError crash (500)
    • fix(memory): refresh content-length and etag on PUT overwrite — the stale cached pair made WebDAVFS see an empty/corrupt file after creating a new file
    • fix(memory): include the requested resource itself in Depth:1/INFINITY PROPFIND, aligned with the fs provider — an empty collection or a file returned 404, blocking Finder mounts of an empty memory provider
    • perf(memory): accumulate PUT body chunks and join once — the quadratic concatenation made a 256MB upload take ~30s (9 MB/s) with a 10GB RSS spike; now 3413 MB/s with no spike, 1GB uploads complete in 0.25s (4122 MB/s)
    • fix(provider): answer write requests on read-only providers with 403 carrying the read-only notice instead of a bare 401 — the challenge-less 401 made WebDAVFS retry forever; OPTIONS advertises DAV class 1 for read-only providers
    • fix(webdav): make prefix_provider_mapping an instance attribute — the class-level shared list leaked providers across WebDAV instances in the same process
    • perf(propfind): render the PROPFIND 207 multistatus body with a direct string writer instead of xmltodict.unparse — a 1000-entry Depth:1 PROPFIND spent ~87% of request CPU in xmltodict (~650k calls); the XML portion is now ~10x faster; per RFC 4918 the DAV:lockdiscovery live property is emitted inside D:prop (was a non-conformant sibling), the mandatory DAV:lockroot is added to activelock (PROPFIND and LOCK responses), the unregistered DAV:encoding property is no longer emitted (content encoding remains available on GET responses), resourcetype is returned only when requested in named mode, extra namespaces are declared once on the root , basic properties emit in a fixed order, and text values containing newlines are no longer stripped; PROPPATCH/LOCK responses and request parsing still use xmltodict
  • Development:
    • feat(provider): reserved files shielded at the WebDAV interface — the property sidecar (.davext) and the upload temporary (.davtmp) are excluded from listings and every request naming one is answered 404; suffix names are centralized in constants for future redesign
    • chore(mypy): full-repo mypy strict coverage — every file under tests/ included, python_version aligned to 3.15, and all error codes enforced (disable_error_code removed); 97 files clean
      • sentry_sdk declared as an optional import for mypy (per-module ignore_missing_imports override) — the mypy CI job does not install it, and the enforced import-not-found broke the check
    • refactor(property): convert asgi_webdav/property.py into a package — the module moves to property/common.py and the new PROPFIND renderer lives in property/propfind_response.py; asgi_webdav.property still re-exports DAVProperty/DAVPropertyBasicData so existing imports are unchanged
  • Release:
    • fix(release): commit the PyInstaller spec

2.1.0 - 20261017

  • Breaking change:
    • removed: CLI flag --litmus, use python -m asgi_webdav -c examples/config/litmus.toml instead
    • changed(config): http_digest_auth.disable_rule default value changed from "neon/" to ""
    • chore: remove py3.10 support, minimum python is 3.11 now
  • WebDAV support:
    • fix(range): RFC 7233 compliant GET Range/If-Range handling for all providers
      • unsatisfiable Range → 416 with Content-Range: */<size> (was 200)
      • webhdfs: honor If-Range; no spurious Content-Range on full-file 200
  • Auth:
    • fix(auth): make Digest auth compatible with neon based clients (WinSCP, cadaver, litmus)
      • rspauth HA2' uses an empty method (RFC 7616 3.5.2); fix quoting per RFC 7616 3.3/3.5
      • quote-string aware Authorization parser; optional algorithm/opaque, RFC 2069 legacy
      • fix(dev): correct the stored HA1 of user-digest in dev mode
  • Performance:
    • perf: optimize DAVPath hot path operations (drop net-negative lru_cache, raw-string equality, scandir fast path)
    • chore(tools): add tools/perf measurement suite, restructure litmus_cli into tools/litmus
  • Config:
    • refactor(config): migrate Config to the dataclass-wizard v1 API
  • Development:
    • chore(tools): add tools/perf — performance/compatibility measurement for GIL/FT/FT+JIT × macOS/lima, with compare gating, trend plots and a rolling repo-committed baseline (baseline promote)
    • chore(tools): restructure tools/litmus_cli.py into the tools/litmus package (shared tools/common helpers, one resident lima VM)
    • chore: move test_zone/ into tests/test_zone/
    • chore(mypy): extend strict checking beyond the package
    • test: extend test coverage (cache, response, server, web_dav)
    • chore: yearly upstream update — adopt py3.15 for CI and dev env; verify aiofiles 25.1.x (latest)
    • refactor(enum): switch DAV enum base to py3.11+ StrEnum
  • Release:
    • fix(ci): standalone binaries have not been published to GitHub Release since v1.3.1 — pyinstaller missing in CI, archived release actions, Windows dependency install failure; add workflow_dispatch to (re)build assets for an existing tag
    • changed(release): Windows asset is now zipped (asgi-webdav-windows.zip), asset naming unified with -macos / -windows suffixes; macOS binaries are arm64-only (macos-latest runners)
    • fix(packaging): uvloop marked non-Windows in the standalone extra, pip install asgi-webdav[standalone] now works on Windows
    • fix(cli): replace bare exit() with sys.exit() — the site builtin is missing in frozen (PyInstaller) builds, crashing asgi-webdav -V

2.0.2 - 20261009

  • fix: catch httpx transport errors in WebHDFS provider (#98)
  • fix: abort file reading promptly when client disconnects during streaming response

2.0.1 - 20260220

  • fix(webhdfs): convert timestamps from milliseconds using DAVTime (#89), contributed by PIC 1
  • fix(webhdfs): fix WebHDFS provider to handle requests without Range header (#90), contributed by PIC 1

2.0.0 - 20260117

  • Broken change:
    • remove brotli support
  • WebDAV support:
    • feat: support request header If
    • refactor: rewrite lock related code; fix two litmus warning
    • refactor: full support request header If-Range
    • refactor: request header Range support
    • refactor: request header Lock-Token support
    • refactor: request header Timeout support
    • refactor: request header Depth support
    • refactor: lazy process request option header
  • Provider support:
    • refactor: rewrite MemoryProvider implementation
  • Response:
    • feat: support zstd compression in response
    • feat: response support header: X-Uncompressed-Content-Length
    • refactor: DAVResponse
    • refactor: DAVSender
  • Other:
    • fix: handle filebar XML parsing issue(temporary solution)
    • refactor: config logic
    • refactor: improve type hints for mypy
    • chore: add mypy configuration
    • chore: compatible with py3.14
    • chore: update xmltodict to v1.0.2
  • and more...

1.6.2 - 20251216

  • fix: use absolute path for multi-suffix config files

1.6.1 - 20251101

  • fix(docker): ldap depend miss

1.6.0 - 20251031

  • feat: new config, HTTPBasicAuth.cache_timeout
  • Optionally expire authentication cache entries after a defined time, thanks PIC 1
  • feat: new config, Compression.enable
  • feat: both support .toml and .json config file
  • feat: support optional anonymous user, thanks PIC's idea
  • feat: Implement a WebHDFS provider, contributed by PIC 1

1.5.0 - 20250628

  • Breaking Change
    • feat: config.Provider has new ignore_property_extra poperty, default is True
  • Allow authenticating any user from LDAP server, thanks PIC 1
  • feat: better timezone support, get timezone from env TZ
  • feat: HTTPBasicAuth's cache is now configurable

1.4.2 - 20250424

  • Fix, ensure expected HTTP response header is included in responses, thanks SilviaSWR PIC 1
  • Add, handle non-existing parent folder, thanks SilviaSWR PIC 1

1.4.1 - 20240626

  • Add, config in-container host,port and configfile by env, thanks bonjour-py
  • Add, push docker image to ghcr by github action, thanks bonjour-py

1.4.0 - 20240319

  • Add a dead simple implementation for "read only" mode, it's not a WebDAV's ACL "read only"
  • Add, take query_string from ASGI scope to DAVRequest
  • Add, DAVRequest support all HTTP method, include POST and UNKNOWN
  • Add, new config for logging
  • Update, optimization HideFileInDir logic
  • Update client user-agent regex
  • Upgrade xmltodict to 0.13.x
  • Update pydantic to 2.4+
  • Update docs

1.3.2 - 2022-10-08

  • Fix method PROPFIND's compatibility(litmus/0.13 neon/0.31.2)

1.3.1 - 2022-09-30

  • Add ARMv7 into Docker targets

1.3.0 - 2022-09-30

  • Add examples.work_together_with_other_asgi_app.py, thanks davidbrochart
  • LDAP is now optional
  • uvicorn is now optional
  • FileSystemProvider uses more aiofiles API
  • Change DAVRequest.depth's default value from DAVDepth.infinity to DAVDepth.d0
  • PROPFIND will return 200 if only one DAV property response in the return

1.2.0 - 2022-06-20

  • Broken change
    • Change Config.compression.user_content_type_rule to Config.compression.content_type_user_rule
  • Add more support for HTTP header: Range
  • Fix HTTP Digest rules checker
  • Add a new property DAVResponse.compression_method

1.1.0 - 2022-06-05

  • Add new feature: CORS
  • Reduce Docker image size

1.0.0 - 2022-03-09

  • Broken change
    • Remove feature: DirBrowserIgnore
  • Change docker base image from slim -> alpine,
  • Add non-root support in docker container
  • Add new feature: hide file in directory
  • Add hashlib mode for stored password
  • Add HTTP Digest mode for stored password
  • Add LDAP mode for stored password

0.9.1 - 2021-08-02

  • Fix bug

0.9.0 - 2021-08-02

  • Add Config.http_digest_auth.enable_rule

0.8.1 - 2021-07-30

  • Fix Dockerfile

0.8.0 - 2021-07-30

  • Real client ip address
  • CLI support
  • Release Windows/macOS package

0.7.0 - 2021-07-03

  • Add logging page: /_/admin/logging
  • Disable Digest auth in default
  • Support header Accept-Ranges/Range/Content-Range (Incomplete implementation)
  • Fix bug: can't access home dir when it can't access share dir

0.6.1 - 2021-06-23

  • Compatible with Window10 Explorer(Microsoft-WebDAV-MiniRedir/10.0.19043)

0.6.0 - 2021-06-22

  • Support HTTP Digest authentication
  • Code optimization

0.5.0 - 2021-05-14

  • Text file charset detect
  • Support gzip/brotli in response
  • Fix bug: Content-Encoding

0.4.0 - 2021-05-10

  • Support ignore rules in web dir browser
  • Configurable guess_type()

0.3.1 - 2021-05-06

  • Broken change:
    • Config.username/password => Config.account_mapping
    • Environment Variable Name
  • Add multi-account support
  • Add permission support
  • Add home_dir support

0.2.1 - 2021-04-27

  • Add web dir browser

0.1.1 - 2021-03-26

  • Fix bug

0.1.0 - 2021-03-25

  • first release