mpcjanssen/simpletask-android

WebDav 401

hoclun-rigsep opened this issue · 1 comments

Hello, long time user of the cloudless version, I decided to set up WebDav with apache and try for that. I have digest auth on the server and it seems to be working fine—tested with multiple clients. However I get http 401 when I try to use the server. I've double-checked the login fields. My url is https://mydomain.name/webdav and I've tried that with and without a trailing slash. Any idea what could be going on? From the log:

okhttp.OkHttpClient:
A connection to https://mydomain.name/ wa sleaked.
Did you forget to close a response body?
[...]

I'm getting the same error code, it seems like Simpletask is using the wrong auth method.
From my webdav server's logs:

webdav          | 192.168.1.55 - - [29/Jun/2023:09:00:16 +0000] "PROPFIND / HTTP/1.1" 401 381 "-" "okhttp/4.9.0"
webdav          | [Thu Jun 29 09:00:16.110855 2023] [auth_digest:error] [pid 8:tid 139918730255080] [client 192.168.1.55:43212] AH01781: client used wrong authentication scheme `Basic': /

so we both either set our webdav auth schemes to "Basic" instead of digest (would rather not), or we make a PR solving this issue ;P