skjiisa / WebDAV-Swift

WebDAV communication library for Swift with caching and thumbnail support
BSD 2-Clause "Simplified" License
65 stars 17 forks source link

Does not work with Apache #43

Open Etherous opened 2 years ago

Etherous commented 2 years ago

Unfortunately it seems this library is not compatible with Apache DAV. First thing I noticed while debugging this is the "Depth" header is not included. This header is required by the WebDAV standard and, if not included, Apache will not list directory contents. Secondly, also when listing directory contents, it seems that after receiving the XML response, the process of converting the entries into WebDAVFile instances is failing to correctly parse the response. I stopped trying to debug here, so there are probably additional compatibility problems. I'm assuming this library was specifically designed to interface with OwnCloud/NextCloud, but that is not mentioned in the documentation that I have noticed. If you don't intend to support other implementations of WebDAV, please say so in the Readme

skjiisa commented 2 years ago

Thanks for the info. I updated the readme to specify that it has only been tested with Nextcloud. I’ll take note of this compatibility issue for when I have more time to work on this.