github Kozea/Radicale v3.9.3
3.9.3 Major Review

one hour ago

Important

Some fixes are security or stability relevant in certain configurations, so update is strongly recommended.

Fixes

  • Fix: [rights] from_file: the rights file is read as UTF-8, with or without a BOM, like configuration files. It used to be read with the locale encoding, so on Windows with a legacy code page, or another non-UTF-8 locale, a non-ASCII rule failed to load or silently did not match. A rights file saved in a legacy encoding has to be converted to UTF-8
  • Fix: configuration files are read as UTF-8, with or without a BOM. They used to be read with the locale encoding, so on Windows with a legacy code page (cp1252, cp949), or another non-UTF-8 locale, a non-ASCII value failed to load or was decoded to different characters. A configuration file saved in a legacy encoding has to be converted to UTF-8
  • Fix: [auth] cache now honors user name set by LDAP if ldap_user_attribute is set
  • Fix: [auth] uses time.monotonic_ns instead of time.time_ns
  • Fix: Docker images include the oauth2 and rabbitmq extras again (requests and pika are no longer core dependencies since 3.9.1)
  • Fix: sharing update rejects a JSON null path with 400 and treats JSON null properties or actions as a clear. Those values used to crash the request with HTTP 500
  • Fix: sharing hide, unhide, enable, and disable report a failed update as 400 Internal Error. The same failure on update and delete was already 400, and these actions used to answer 200
  • Fix: a calendar-query REPORT that matches an item lists that item even when the request has no DAV:prop
  • Fix: storage skips a socket or other non-file stored under an item name. Opening it used to raise ENXIO and the request became HTTP 500
  • Fix: radicale --verify-storage fails when synchronizing a collection raises ValueError. That error used to be ignored, so the check exited 0
  • Fix: radicale --verify-storage fails when two items in one collection share a UID. It used to log the conflict and still exit 0
  • Fix: an empty PUT with Content-Type: text/calendar is rejected. It used to create a subscribed collection because that tag shares the same media type
  • Fix: storage startup does not report 1 ns mtime precision, or recommend the mtime cache, when the probe timestamp does not change
  • Fix: hexdump marks a UTF-8 lead byte with its real length. 0xE0 is 3 bytes and 0xC0–0xDF are 2 bytes; bytes from 0xF8 up are not a 3-byte lead
  • Fix: PROPFIND reports a shared principal's own URL, including from its parent
  • Fix: a calendar component that is only a recurrence override is reported once
  • Fix: proppatch: setting resourcetype (e.g. CS:subscribed) stored the change but answered 400 Bad Request
  • Fix: [auth] ldap3: do not bind the reader account without TLS if StartTLS fails or is refused by the server
  • Fix: [auth] ldap3: an unexpected error while opening the reader connection raises "Unable to read" instead of crashing with an undefined connection
  • Fix: [logging] *_on_notice_condition with status: compare status OP value (was value OP status, so >= behaved like <=)
  • Fix: [logging] *_on_notice_condition with host match excluded raised an error (undefined variable)
  • Fix: [storage] ignore a damaged item, history, or sync-token cache when unpickling raises KeyError
  • Fix: [storage] discover group collections with a posix path so a Windows separator is not rejected as an unsafe name
  • Fix: hook: a CANCEL for an event with no SEQUENCE is sent with SEQUENCE:1. Building that message used to fail
  • Fix: hook: notify on a whole-collection PUT. The prepared items were consumed while the collection was stored, so the hook never saw them
  • Fix: hook: a whole-collection PUT reports a replaced item's previous body as old_content and the uploaded body as content. The filename written for each item was discarded, so every item was reported as new
  • Fix: log an HTTP 4xx response at error, except the statuses and methods already logged at notice
  • Fix: sharing resolver-by-map skip for existing path
  • Fix: PROPPATCH on shared collection with properties overlay is rejected in case mapped collection is not existing

Extensions

  • Add: [auth] configurable upper and lower bounds for constant execution time padding for failed logins
  • Add: [auth] option to limit concurrent authentication backend calls with configurable limits for total active and waiting requests, active checks per login, and wait time
  • Add: [auth] options cache_successful_logins_max_count and cache_failed_logins_max_count
  • Add: create Webcal subscriptions from CalDAV clients such as Apple Calendar
  • Add: Apple Contacts can sync its My Card designation over CardDAV
  • Add: [hook] itip_owner_map: ordered full-string username regex rules with brace-style capture replacements; escape metacharacters in existing literal keys
  • Add: support MOVE of calendar and addressbook collections (rename, or move below another principal)
  • Add: [hook] itip_owner_reply_to: route ordinary replies to the authenticated actor's explicitly mapped address
  • Adjust: sharing/update: change of User is only supported for sharing-by-group, reject change of PathMapped

Adjustments

  • Change: dependency PyPI/libpass replaced with PyPI/passlib >= 1.9.6
  • Change: [auth] when both cache_logins and concurrency_limit_enabled are enabled, cache hits bypass the limiter and concurrent requests with the same credentials are coordinated so only one calls the backend
  • Change: [auth] reimplement cache in class AuthCache using OrderedDict: consistent and more efficient eviction/pruning of expired entries upon each authentication call
  • Change: [auth] cache ttl/expiry clock now starts after the authentication call (not before)
  • Change: [auth] use process-lifetime random constant secrets.token_urlsafe() instead of time to salt cache digest
  • Adjustment: the built-in server logs a warning at startup that it is meant for local testing, not for production (use [server] type = cheroot or hypercorn)
  • Adjust: [storage] filesystem_fsync option documented and renamed from _filesystem_fsync (internal use only so far)

Features

  • Feature: sharing: add new option permit_create_map_for_group (default: False) and permissions 'G' and 'g' for fine granular control of share-by-map for groups

Improvements

  • Improve: storage/hook: escape all placeholder values with same method
  • Performance: storage: add fast path for has_uid in multifilesystem
  • Improve: apply validate_user_value also for returned username from authentication backend
  • Improve: validation of provided CONTENT_LENGTH

Documentation

  • Doc: Docker Compose example that creates the htpasswd users file from the RADICALE_USERS environment variable

Caution

Configurations using LDAP as authentication backend and ldap_user_attr = <attribute> where <attribute> is not read-only for the LDAP user itself are insecure!

Note

Credits to all contributors and reporters

Builds for EL/Fedora are already available https://koji.fedoraproject.org/koji/packageinfo?packageID=16893

Don't miss a new Radicale release

NewReleases is sending notifications on new releases.