WebDAV
The WebDAV authoring interface exposes each Pagelove site as a standard WebDAV mount. Any filesystem client that speaks WebDAV can browse and edit content directly.
When to reach for it
Use WebDAV for file-level authoring — uploading assets, reorganizing directories, or editing documents with desktop tools. Each site has its own mount URL. Credentials are configured in the Pagelove control panel.
Live site
The WebDAV mount represents the live site. Pagelove modifies the DOM in place, so another user or an API call may update a document between the time it is read and the time it is written back. The author is responsible for coordinating concurrent changes.
What comes back is not always what you sent
Pagelove stores a document as a tree of elements, attributes and text, not as the file you uploaded. When you read the document back, the server writes that tree out again. So a read is the server's canonical spelling of your document, which is not always the bytes you sent.
Most hand-written HTML survives unchanged, because it is already spelled the way the server spells it. Documents carrying Sessel bindings usually do not, because expressions are where authors write the characters that get respelled.
These are the changes you will see:
&inside an attribute value becomes&, soe:if="a && b"is stored ase:if="a && b"- single-quoted attribute values become double-quoted, so
e:each='/items/ li'is stored ase:each="/items/ li" - an attribute with an empty value loses the
="", soe:each=""is stored ase:each - a self-closing slash on a void element is dropped, so
<br/>is stored as<br> - tag names are lowercased and attribute names are kept as written, so
<DIV CLASS="x">is stored as<div CLASS="x"> &,<and>in the text between tags are escaped, so<p>1 > 0</p>is stored as<p>1 > 0</p>- every entity is decoded and written back in the server's own spelling, so
>is stored as>and as the space character it stands for
That list covers what authors actually run into. It is not a complete inventory: what comes back is whatever the HTML parser and serializer make of your document, so an unusual spelling not named here may also change.
Comparison operators are safe. < and > inside an attribute value are left
alone, so e:if="count > 3" is stored exactly as you wrote it.
There is one exception. Inside noscript, noembed, noframes, iframe,
xmp, textarea or title, a < in an attribute value is written as <.
A browser reads those elements' content as plain text up to their end tag, so
an unescaped </noscript> in an attribute value would end the element early
and let the rest of the value run as markup. The value itself does not change:
< reads back as <.
A comment inside noscript, noembed, noframes, iframe or xmp has
every </ written as <\/, so <!-- </noscript> --> comes back as
<!-- <\/noscript> -->. A comment cannot be escaped, so this is the only way
to stop it ending the element early. Comments anywhere else come back as you
wrote them.
The first four items change spelling only. The document parses to the same tree and your bindings behave the same way.
Attribute names are not changed. A name such as p:textContent or viewBox
reads back with the spelling you wrote. Matching ignores letter case, so a
selector or script written against p:textcontent still finds it. The part
after an xmlns: prefix is the exception: it matches exactly. In an XML
document, names match exactly throughout. A selector on an HTML page cannot
tell two xmlns: declarations apart when they differ only in case, because the selector engine lower-cases the
selector's attribute name: [xmlns\:Host] matches xmlns:host and not
xmlns:Host. Only element names on an HTML page are lower-cased.
Checking that an upload worked
Inspect the write's actual status, headers and body first. The current authoring PUT implementation returns the canonical serialized write representation for HTML, or the uploaded bytes for a non-HTML asset. HTML normalization can change the spelling of what you sent; byte differences alone are not evidence of a failed upload. Inspect the returned write scope: a selector write's body need not represent the entire document or its later state after another editor's changes.
For a later verification read, use the same authoring host and path, representation and selector scope, and establish what each validator covers. A write can return a document validator while a selector read returns a fragment validator. Neither is automatically comparable with the validator of a composed page at the public serving URL.
Treat an ETag as the complete value returned by the endpoint, including its quotes and any W/ prefix. HTTP validators describe selected representations. Equal, comparable validators establish a match under that endpoint's contract; they are not a universal history or operation receipt. With a content-hash validator, changing A to B and back to A can recreate the same tag. A mismatch between different scopes or representations does not establish that your write failed.
For a supported conditional replacement, use the specific strong validator documented for that write target and keep the draft if the precondition fails. If-Match uses strong comparison; do not remove W/ to turn a weak tag into a strong one. If-Match: * tests existence, not a particular version. If the required validator is unavailable, coordinate and reconcile the edit instead of silently falling back to an unconditional overwrite.
If the response is lost, retain the pending change and treat acceptance as unknown. Read and reconcile before repeating a write that could overwrite or duplicate work. Matching current content alone does not identify which request committed it.
Check the public served result and application behavior separately using the first deployment checklist. An authoring acknowledgment does not prove application validation or readiness. Record the actual host/revision and observed results.
Selector writes on the authoring endpoint
Address these requests to the host's WebDAV authoring URL. The selector extension shares body-parsing behavior with the serving path, but has its own request handling and limits.
A Range: selector= PUT or POST reads its body as markup, whatever its
Content-Type, so it edits the element and never replaces the page. The one
exception is a PUT with a text/plain body, which sets the text of the
element. A POST reads every body as markup, a text/plain one included. This
is the rule the public server follows for a path that names a page.
For WebDAV PUT and POST, the selector must match exactly one existing element. A selector PUT does not create a missing element; use an appropriate append or resource-creation operation instead.
For POST, Range: selector=ul#items selects the existing parent. The authoring handler reads placement from Destination-Range; for example, Destination-Range: placement=append. Append is the default and the only implemented placement here. Recognized prepend, before and after values in that header are refused with 501 Not Implemented. A placement= sub-field in Range does not select POST placement in this handler.
The checked-out authoring implementation has these outcomes. Authentication, preconditions and later pipeline failures can also refuse a request; this table is not an exhaustive error list.
| Authoring request condition | Result |
|---|---|
| Accepted PUT to the existing selected element, or accepted POST append | 200 OK with the canonical write body. |
| Invalid selector syntax | 400 Bad Request. |
| Document absent or selector matches no element during preflight | 404 Not Found. |
| Selector matches more than one element during preflight | 422 Unprocessable Entity. |
Recognized but unsupported POST placement in Destination-Range |
501 Not Implemented. |
POST with an unrecognized placement value in Destination-Range |
400 Bad Request. |
Selector PUT with a valid unique target and If-None-Match: * |
501 Not Implemented; this selector-create mode is unsupported. |
The public PUT and POST references describe the serving contract. Use this authoring contract when implementing a WebDAV client, including its placement header and response handling.
WebDAV uses its own authoring authentication and permissions. It deliberately bypasses application schemas, constraints and handlers; shared markup parsing does not add application validation. See how an application fits together for that boundary. Establish the actual deployed revision and verify required behavior on your host.
Validation and runtime availability
WebDAV is trusted authoring with its own authentication. Its writes bypass the application's type, required-property, cardinality, enum and custom-validator checks, as well as uniqueness, reference, shape and state-transition constraints. They do not run application triggers or processors, or enqueue application transition notifications. This covers whole-document creation and replacement, selector PUT/POST/DELETE, COPY/MOVE and the files written by ZIP extraction. Use a supported application write path when server-enforced application rules or handlers are required.
Shared metadata and index bookkeeping, and enabled cache-purge or change notifications, remain separate from application handlers. Seeing those effects does not establish that an application trigger, processor or transition notification ran.
Policy exemption does not remove the work needed to carry out a write. Target and selector resolution, supported placement, conditional requests, locks, reserved paths, size limits and storage checks still apply. A successful authoring response is not evidence that the content satisfies application rules.
The authoring write dispatcher also builds a runtime that reads the host's schema metadata. If a local Schema document cannot be read from storage, that step can return 500 before persistence, including for a PUT or DELETE intended to repair that schema. Tests with and without a successful preceding authoring write reproduced this failure. That is a runtime-loading failure, not rejection by an application validator. The index provider's incomplete-rules fallback does not guarantee that a request reaches persistence.
WebDAV can therefore repair content rejected by readable application rules, but it is not a guaranteed recovery path for unreadable schema storage. Ask an operator to investigate and restore that data when ordinary authoring cannot load it. Keep the submitted change and reconcile the stored state before retrying a write whose outcome is uncertain.
Creating directories
MKCOL creates an empty directory. You do not need it before uploading a file:
writing /blog/2026/post.html creates /blog/, /blog/2026/ and every other
parent for you. Reach for MKCOL only when you want a directory that has
nothing in it yet.
The path must end in /.
The failures you can hit, and what they mean:
405 Method Not Allowed— there is already something at that path, or the path did not end in/409 Conflict— the directory above it does not exist
Every 405 from the authoring server carries an Allow header built from
its implemented methods. A handler can narrow the list for a particular
target: for example, a refused MKCOL omits MKCOL from the methods it
offers there.
Unsupported methods such as PROPPATCH are rejected with 405 and are
excluded from the advertised list. The refused method appearing in an
error message does not mean the server implements it.
A method listed in Allow indicates server support, not permission for
your credentials to perform it. Authentication, permissions and the
operation's target-specific conditions still apply.
This follows the WebDAV standard, which allows MKCOL only where nothing is
mapped yet. So 405 means "you cannot create anything here" and 409 means
"create the parent first". You can tell them apart from the status code alone.
If you want the detail as well, the response body names the condition. Read it
from the type of the item nested under detail, not from the kind on the
envelope — on a refused MKCOL that kind is the generic Internal and tells
you nothing:
<article itemscope itemtype="https://pagelove.org/Error">
<meta itemprop="status" content="405">
<meta itemprop="kind" content="Internal">
<div itemprop="detail">
<div itemscope
itemtype="https://dombase.pagelove.team/ns/error/DirectoryAlreadyExists">
<ul itemprop="problems">
<li itemprop="problem"><span itemprop="message">Directory already exists</span></li>
</ul>
</div>
</div>
</article>
The name at the end of that inner type is DirectoryAlreadyExists or
ParentDirectoryMissing.
That example shows a 405, because the directory was already there. Note that
405 covers the two ways you can be told "not here": something is already at
the path, and the path did not end in /. The standard has the same overlap,
and either way the answer is to stop trying to create that path.
Directory listings and revalidation
Every directory has a version tag (an ETag). A client that already has a copy of a listing can send that tag back on its next PROPFIND as If-None-Match; if nothing in the directory has changed, the server answers 304 Not Modified with an empty body and the client reuses what it has.
The tag belongs to the question you asked, not just to the directory. Depth: 0 asks for the directory's own properties; Depth: 1 (the default when no Depth header is sent) asks for the directory and everything directly inside it. Those are two different answers, so they carry two different tags. Sending a Depth: 0 tag with a Depth: 1 request returns the full listing rather than a 304 — a listing is never answered with "nothing changed" on the strength of a stat.
The tag appears both as the ETag response header and as the <D:getetag> property of the directory's own entry in the multistatus body; the two always agree. Responses also carry Vary: Depth, so a caching proxy placed in front of the authoring server keeps the two depths apart.
A directory's tag changes whenever a child is added, removed, or edited.
A Depth: 1 listing leaves out <D:getetag> for a page whose ETag has not been worked out again yet, rather than read every such page. That happens to a page after a POST over HTTP that read only the part of the page it changed, at any page size, and it lasts until something reads the whole page. GET, HEAD and PROPFIND of the page itself read it first, so they always send the tag.
Single files work the same way. Ask for a file's properties, keep the tag from the ETag header, and send it back on the next request: if nothing about the file has changed, the answer is 304 Not Modified and you reuse what you have. A tool that polls a file to see whether it has changed pays for the answer once, not on every check.
Use the tag from the header, not the one inside the response body. They are two different tags for two different jobs: the one in the body identifies the file's contents, which is what you send when you want to save a change only if nobody else has. The one in the header identifies the answer you just received — the properties, including the file's type and when it was last changed — which is what you send to ask whether that answer is still current.
ZIP uploads and partial outcomes
ZIP extraction validates the archive and all file-entry names before writing files. An unsafe file-entry name returns 422 before any file is extracted, including valid entries that appeared earlier in the archive.
After those checks pass, each file is saved separately through the authoring pipeline. A later member's write can fail after earlier members have been stored; the extraction is not one transaction. Inspect the error and read back the affected paths before retrying the archive. A refused archive and a failed member save have different persistence outcomes.
When something goes wrong
An error response carries an HTML document describing what happened, not just a status code. It is marked up so a program can read it:
<article itemscope itemtype="https://pagelove.org/Error">
<meta itemprop="status" content="422">
<meta itemprop="kind" content="UntranslatableWrite">
<div itemprop="type" itemscope
itemtype="https://dombase.pagelove.team/ns/error/UntranslatableWrite"></div>
<p itemprop="message">…</p>
</article>
The kind names the specific failure, and the nested item repeats it as a
type you can match on. Those names are the same ones the HTTP interface uses,
so a client that already understands errors from one interface understands
them from the other — the server never invents a name of its own here.
When a write is refused by the shared pipeline, the pipeline's own error
document is included unchanged under a detail property, so you get its full
description rather than a summary of it.
The status code tells you what to do about it, and it is worth distinguishing two that look similar:
404means the requested file or selected target could not be returned. It is not universal proof of deletion: a file whose stored content is missing can also answer404, as described below. Keep local work while reconciling an unexpected missing-file response.500means the server failed — including when the write runtime could not load the site's schema. That schema dependency failure is reported as500, rather than a missing target. It does not mean your file was deleted or that application validation rejected its content. Investigate the fault and reconcile affected paths before retrying a write; an error alone does not establish the outcome of every member of a multi-file operation.
Other codes you may see:
409when a write conflicts with a concurrent change, or when it addresses a transient element, which needs a browser session that WebDAV does not have. ADELETEthat loses a race with a concurrent write also gets409, and you can send it again400for a path the server will not accept404also when aRange: selector=write's selector matches nothing in the file. A selector write to a file that is not HTML, such as a stylesheet, usually gets this, because the selector finds no element there503when the storage layer is briefly unavailable, including while aQUERYlists the files it covers, and the request can be retried504when aQUERYover several files (including while it lists the files), a save that has to read the site's dynamic indexes, a save of a web page, or a delete of one page, ran out of the database's transaction time. A save is tried again first, so it can answer after its 30-second publish deadline, sometimes longer. It usually fails again, so narrow the request or work on fewer files. Any other read that runs out of transaction time answers503. A save or delete outside those (a binary save, an in-place element write, a collection delete) keeps the status of its storage error, which is503when the database says trying again may succeed and500otherwise500when aQUERYover several files meets a damaged file that it cannot read. It does not answer without that file. A file stored with its content missing answers404to a plainGET, and you can overwrite or delete it with aPUTorDELETEover WebDAV. The public site cannot do this for you when the file holds processors, triggers or transition rules, or the server cannot show that it holds none: while a file that holds processors or triggers is damaged, every request through the public site fails, including aDELETEorPUTmeant to repair it, and while a file that holds only transition rules is damaged, every write fails. A damaged Schema file also fails every request through the public site, because it may declare a subtype of those rules. A damaged file that holds no such rules does not stop other requests, unless the server cannot use its index and so reads every file. Otherwise only a query that reads it fails, such as aQUERYover its directory. WebDAV omits application-handler discovery, but its write runtime still loads local schemas. An unreadable local Schema can therefore stop authoring with500, including an attempted overwrite or deletion of that schema. Bypassing application rules does not guarantee repair of damaged schema storage507when the request exhausted its allowance, and when the save's page is so large or so deeply nested that finding its items' properties for the site's uniqueness and reference entries ran past 5 seconds. WebDAV skips application validation, but it still records those entries, and it never records fewer than the page holds, so it refuses the save and stores nothing
You get 422 when the request itself cannot be carried out:
-
a
Range: selector=PUT or POST whose selector matches more than one element -
a
text/plainselector PUT or POST aimed at an element that cannot hold text, such as<img>or<br> -
a
QUERYwhose body is empty, is not UTF-8, contains a carriage return, line feed or NUL character, or is not a valid CSS selector -
a zip upload that is not a valid zip archive, holds an entry that cannot be read, or holds an entry whose name would land outside the target folder
WebDAV never checks your content against the site's schemas or constraints,
so it never answers 422 for that. It is how you repair a page a rule has
made impossible to save through the web. See
WebDAV is never checked.
Reading part of a file
A GET on the WebDAV server accepts Range: bytes= for pages and for files, and answers 206 Partial Content, 416 Range Not Satisfiable or the whole 200 by the same rules as the public site. A HEAD ignores Range. A GET or HEAD of a whole page or file carries Accept-Ranges: selector, bytes, and so do the 206 and 416 replies to a byte range. Selector replies, 304 answers, errors and OPTIONS replies do not. Download tools and media players use this to resume and seek. See Byte ranges.
Effect on the edge cache
WebDAV writes do not run your triggers or processors, but they can change which ones exist. The platform therefore tells the edge cache when a WebDAV write could have changed one.
These WebDAV writes empty the edge cache for your site:
- saving a page that holds a trigger or processor, or replacing a page that held one
- deleting a page, including a binary file
- copying or moving a page, when the destination held a trigger or processor or the page you copy or move holds one
- a write that affects a schema
- a save, copy or move for which the platform cannot read a stored page or cannot load your schemas, because it cannot tell
These do not:
- writing a binary file
- creating a directory (MKCOL) and copying a directory
- a move whose source delete fails after the copy was made, because the copy publishes no host-wide purge (the cache entry for the destination path is still purged)
Deleting or moving a directory purges the cache entry for every page deleted under it. If it removed more than 1,000 pages, it empties the whole host's cache instead. It also tells every node to drop its cached schemas for your site, because the pages may have held schemas.
To spot trigger and processor types that a schema declares as subtypes, the platform loads your site's schemas and the system schemas. It does that only to decide whether to empty the cache. It also reads the stored page first.
Changing a transition rule does not empty the edge cache. The platform still picks up the new rule, as the transition pages describe. WebDAV never checks what you save.
Verification scope
Authoring contract evidence: November 5, 2026, against repository commit faa861ab57ea3fc7949dd57961e069c9334f06ff on an isolated Linux stack. The complete test run exercised the declared operation matrix and the existing platform suites. Eight rule/operation combinations are explicitly inapplicable; an unsupported application-core COPY and the lack of an application ZIP-extraction comparison are not treated as matching application controls. The test source records each case and its limits.
The schema-storage fault tests separately reproduced twelve runtime-loading failures and successful writes after the missing data was restored. A prior successful authoring write did not avoid the fault. These results identify tested source and configuration; they do not identify the version deployed on your host, establish when behavior changed, or certify this whole documentation site.
See also
- Reading and writing — fragment-level reads and writes via HTTP
- Permissions — authorization rules for requests through the web. WebDAV does not use them: it has its own authentication