Possible to allow HTTP 204 response for options request in webdav server check?
Hi,
I am trying to configure webdav sync with the windows client (version 6.0.18), but I am getting the following error:
An unknown error occurred.
Please check your file sync settings or contact your WebDAV server administrator.
HTTP 204
I tried to investigate and noticed that the checkServer method of Zotero.Sync.Storage.Mode.WebDAV.prototype performs an initial OPTIONS request to test if the server has WebDAV enabled and it accepts only 200 and 404 as success codes. However, my WebDAV server (Owncloud Infinite Scale) responds with a 204 "no content" code to OPTIONS requests for existing resources. Would it be possible to add 204 to the success codes? I would be happy to create a pull request, if that helps.
I am trying to configure webdav sync with the windows client (version 6.0.18), but I am getting the following error:
An unknown error occurred.
Please check your file sync settings or contact your WebDAV server administrator.
HTTP 204
I tried to investigate and noticed that the checkServer method of Zotero.Sync.Storage.Mode.WebDAV.prototype performs an initial OPTIONS request to test if the server has WebDAV enabled and it accepts only 200 and 404 as success codes. However, my WebDAV server (Owncloud Infinite Scale) responds with a 204 "no content" code to OPTIONS requests for existing resources. Would it be possible to add 204 to the success codes? I would be happy to create a pull request, if that helps.
-
dstillmanThe specs here used to implicitly (and probably inadvertently) forbid 204 for OPTIONS, but they've since corrected that. We've allowed it in the latest Zotero beta.
-
MLWeberedited December 18, 2022I see, thanks a lot for the quick update! I just tested the beta and WebDAV sync works perfectly with Owncloud Infinite Scale now.