You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend
themanifold 23ebe39031
Support for Apache WebDAV module (#6510)
This change to the parser in `cloudstorage.lua` adds support for the [Apache WebDAV module][1]

It was manually tested using the [bytemark/webdav][2] docker container.

I developed this in Windows, with a docker container that hosted an extracted AppImage and a VNC server that I viewed using a VNC client.

I will write up my work flow at a later point.

Changes have not been tested against other webdav servers (what was this originally tested against?). Please could someone test against other webdav servers?

I also noticed a logic inversion error where we were looking for a slash at the end of the URL and if it exists, then we explicitly set `has_trailing_slash=false` - so I fixed it to set to `true`. I had to do this so that we weren't visiting the URL without a trailing slash - apache sends back a 301 redirect with a `location` header with a trailing slash, if you don't put a trailing slash.

As a side note, I think we should consider replacing this regexp pattern matching parser with the [XML parser in the newsreader plugin[3]

[1]: https://httpd.apache.org/docs/2.4/mod/mod_dav.html
[2]: https://github.com/BytemarkHosting/docker-webdav
[3]: https://github.com/koreader/koreader/blob/master/plugins/newsdownloader.koplugin/lib/xml.lua
4 years ago
..
apps Support for Apache WebDAV module (#6510) 4 years ago
device gesture: messages and sensitivity changes for small (warmth) scales; devicelistener dedup (#6468) 4 years ago
document [chore] Update MD5 calls with new sha2 library (#6411) 4 years ago
ui bump luajit-launcher and remove frontlightwidget leftovers 4 years ago
cache.lua [chore] Update MD5 calls with new sha2 library (#6411) 4 years ago
cacheitem.lua cleanup: expand tab to 4 spaces 10 years ago
configurable.lua decouple UI definitions from document modules 5 years ago
dbg.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
depgraph.lua Tame a few tests that relied on `pairs` being somewhat deterministic (#6371) 4 years ago
device.lua Remarkable port (#5828) 4 years ago
dispatcher.lua Dispatcher Gestures Profiles: only flush settings when changed (#6471) 4 years ago
docsettings.lua bump crengine, migrate books to normalized xpointers 4 years ago
dump.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
fontlist.lua desktop: disable battery on touch menu and reader footer 4 years ago
gettext.lua [i18n] Add support for fledgling Hebrew translation (#6333) 4 years ago
httpclient.lua build: enforce luacheck in travis build 8 years ago
logger.lua use android log categories 5 years ago
luadata.lua Use fsync() for more robust setting files saving 5 years ago
luasettings.lua Use fsync() for more robust setting files saving 5 years ago
luxl.lua [fix] Don't break OPDS parsing on HR tags (#5949) 4 years ago
optmath.lua [[doc] Add documentation to optmath (#6258) 4 years ago
pluginloader.lua Add vertical edge gesture (#5156) 5 years ago
pluginshare.lua Move PluginShare.backgroundJobs into PluginShare module (#3128) 7 years ago
random.lua Faster blitting @ BB8/BBRGB32 when no processing is needed (#4847) 5 years ago
readcollection.lua [feat] Favorites: organize book into collections (#5527) 5 years ago
readhistory.lua History: fix possible issues when saving and loading 4 years ago
up_reg.list adapt widgets to new refresh/repaint API 10 years ago
util.lua [fix] Remove isAllowedScript leftovers (#6366) 4 years ago
version.lua [doc, fix] Some documentation issues (#5066) 5 years ago