Skip to main content

Module lock

Module lock 

Source
Expand description

LOCK/UNLOCK protocol request planning and response composition.

Enums§

DavLockPlan
Backend operation selected from a LOCK request.
DavLockPlanError
Failure while parsing and selecting a LOCK operation.

Functions§

enforce_parent_unlocked
Applies enforce_unlocked to the canonical parent of a mutation target.
enforce_unlocked
Rejects an operation when a conflicting lock token was not submitted for its lock root.
ensure_lock_target_exists
Ensures that a LOCK target exists, creating an empty lock-null file when allowed.
lock_acquire_success_response
Builds the 200/201 response for a LOCK acquisition.
lock_conflict_response
Builds a 423 response identifying the lock whose token must be submitted.
lock_discovery_element
Builds the DAV:lockdiscovery property from backend lock values.
lock_limit_response
Builds the active-lock capacity response.
lock_refresh_success_response
Builds the successful response for a LOCK refresh.
lock_xml_error_response
Maps LOCK XML failures to their protocol response.
plan_lock_request
Selects lock acquisition or refresh and validates all protocol-owned inputs.
unlock_success_response
Builds the successful cache-safe UNLOCK response.
unlock_token_mismatch_response
Builds the 409 response for an UNLOCK token that does not match the request URI.
unsubmitted_lock_conflicts
Returns conflicting locks whose tokens were not submitted for their corresponding lock root.