generated from torb/package-template
feat: WebDavStorage driver for webdav and webdavs references #1
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/67-webdav-driver"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes torbscript/language#67
What
WebDavStorageis ashared typewithStorageforwebdav:(http) andwebdavs:(https) references.readGET (404 ->NotFound),existsHEAD (404 -> false)listPROPFINDDepth: 1, 207 reply read withXml().decode, sortedUris below the collection, the collection itself left outwritewhole-body PUT; on a 409 MKCOL of the missing parents from the top down, then one retrydeleteDELETE (404 ->NotFound)StorageFailure.Refusedwith status and reasonuser,password), never part of the URI; a reference with user info isNotAddressable; no failure text holds the passwordTests
tests/webdav.test.trb(23 tests) runs againsttests/dav-server.trb, astd/httpServeron port 0 over an in-memory tree: read and missing read, exists true/false, list with a file and a sub-collection, write including MKCOL of parents, delete, refused statuses (500, 403), credentials header, and failure text without the password.Local:
torb format --check .clean,torb check src tests examplesclean,torb test tests23 passed,torb doc --check --no-run src examplesclean (the sandbox has no C compiler, so doc examples were not run natively; CI is authoritative).Limits (README)
Whole-body PUT, no locking, no ETag handling, no redirects.
No seed impact. Replaces the template greeting, example and
template.trb.Approved at
56675f6. CI (ci, pdisc) green on this head.std/httpserver cover every member, MKCOL of parents, refused statuses (500, 403), Basic header, and no password in failure texts (tests/webdav.test.trb).src/webdav.trbwrite/makeParents), user-info references are NotAddressable, hrefs reduced to their path so a foreign host in a reply cannot redirect resolution.template.trbreplacement is stated in the body.uri.show()and status text, never the reply body.deleteof a collection is documented.Non-blocking:
src/webdav.trb(doc oflist): says an entry naming a path outside the collection is left out, but the code only skips the collection itself and has no test for it. Either filter such entries or drop the sentence.