Hi, everybody. I have a question about the WebDAV import option in local data picker page. Is it only for projects and datasets importing? Since I enter a webdav url and related usr/pwd in the dialog but nothing was showed for me. There are some text files in the requested webdav folder. I could access them via the browser with the url.
And it’s also strange that whatever value I entered in these usr/pwd fields, it will always show this empty folder ui with nothing else.
I think there is something wrong in my webdav configuration. When accessing via qfield, it will get a 403 error, while accessing via browser, it returns 200 as expected. I would like to have a check about my webdav configuration.
Imported from GitHub comment by @gitpydev on 2025-03-16T11:43:35Z
If I access via the Windows Explorer, I find that it also use the PROPFIND method and the webdav server can return the contents as expected, but a 403 is still returned when accessing via qfield.
Imported from GitHub comment by @gitpydev on 2025-03-16T12:19:26Z
After searching for 403 error within the logic of my nginx webdav module, I figure out why.
The module would return 403 for webdav request having a header of “depth: infinity”. And that’s what exactly qfield’s webdav request brings currently. This is the debug log of nginx for the qfield’s webdav request.