RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

Cloud Sync WebDAV fails against Koofr: "answers OPTIONS but does not accept PUT"

Open os-ugalde opened this issue 3 months ago • 2 comments

Description: Cloud Sync fails to sync against a Koofr WebDAV endpoint. The OPTIONS capability check does not detect PUT support, so RetroArch aborts before attempting any file operation, even though the endpoint is a functioning WebDAV server (confirmed working with other WebDAV clients). Expected behavior: Cloud Sync should successfully sync saves/config against a Koofr WebDAV share. Actual behavior: Sync fails immediately with the OPTIONS/PUT capability check, both when pointed at a subfolder and at the account root. Steps to reproduce: Create a Koofr account and generate an app-specific password (Preferences → Password) In RetroArch: Settings → Saving → Cloud Sync → Backend: WebDAV Server URL: https://app.koofr.net/dav/Koofr/RetroArch/ (also tested https://app.koofr.net/dav/Koofr/ at root — same result) Username: Koofr account email; Password: app-specific password Tap Sync Now Version/Commit: 1.22.2 Platform & OS: Android (Xiaomi 14T, HyperOS) Relevant log output:

[webdav] https://app.koofr.net/dav/Koofr/RetroArch/: HTTP 429 Too many login retries [CloudSync] Begin failed.

(this cleared after ~an hour of no retries; the persistent error below remains)

[webdav] https://app.koofr.net/dav/Koofr/RetroArch/ answers OPTIONS but does not accept PUT, so it is not a WebDAV endpoint. Check the URL: providers commonly serve WebDAV over https only, on a dedicated host. [CloudSync] Begin failed. [webdav] https://app.koofr.net/dav/Koofr/ answers OPTIONS but does not accept PUT, so it is not a WebDAV endpoint. Check the URL: providers commonly serve WebDAV over https only, on a dedicated host. [CloudSync] Begin failed.

Additional context: Same failure at both the account root and a manually pre-created subfolder, ruling out a path/folder-existence issue. Credentials confirmed correct (app-specific password, not account password). Koofr's WebDAV endpoint is confirmed compatible with other WebDAV clients (documented for Zotero, Cyberduck, etc.), suggesting the issue is specific to how RetroArch's WebDAV client interprets Koofr's OPTIONS response.

os-ugalde avatar Sep 02 '26 04:09 os-ugalde

Thanks for the report — this is our bug, not Koofr's. Our OPTIONS check required PUT in the server's Allow list, but Allow describes what you asked about, and we ask about a folder — you can't PUT a folder. So correct servers leave it out and we wrongly rejected them. Apache mod_dav does the same thing, so Koofr likely isn't alone here.

Fixed on master in 99f381f — we now go by the DAV: header or PROPFIND/MKCOL support instead. Pull latest and retry your original URL. The 429 you saw earlier is unrelated (Koofr rate-limiting after repeated failures), so leave a few minutes between attempts. If it still fails, paste the DAV: and Allow: lines from curl -i -X OPTIONS -u 'email:app-password' https://app.koofr.net/dav/Koofr/RetroArch/ and I'll dig further.

LibretroAdmin avatar Sep 02 '26 05:09 LibretroAdmin

Im going to assume this can be closed now

LibretroAdmin avatar Sep 16 '26 06:09 LibretroAdmin