2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/frontend/apps/cloudstorage
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
2020-08-17 09:54:16 +02:00
..
cloudstorage.lua Various Wi-Fi QoL improvements (#6424) 2020-07-27 03:39:06 +02:00
dropbox.lua Floor dimension computations (mul/div). (#6264) 2020-06-13 01:56:36 +02:00
dropboxapi.lua [feat] Synchronize local folder with dropbox (#5591) 2019-11-18 18:39:45 +01:00
ftp.lua allow some strings to be translated (#6428) 2020-07-25 15:26:26 +02:00
ftpapi.lua Fix issues #6362 - ftp corruption of binary files (#6363) 2020-07-20 22:53:52 +02:00
webdav.lua Floor dimension computations (mul/div). (#6264) 2020-06-13 01:56:36 +02:00
webdavapi.lua Support for Apache WebDAV module (#6510) 2020-08-17 09:54:16 +02:00