Closed nordluf closed 10 months ago
I'm running the latest oCIS server (binary build ver. 4.0.2 on baremetal together with Caddy as my reverse proxy) and I'm not experiencing any errors with the Android client I'm using (latest git release as of posting) I've been running it like so with prior oCIS server releases and I've never experienced the error you're describing above. Nginx could be the culprit. If you can, try something else like Traefik to rule this out.
That problem happens in the dav library, in the propfind call, so, it something regarding request/response content. As @Ke1i states, please review your middleware setup because is directly related. you can check to connect directly client to server and compare logs/requests with and without middleware.
The problem was, that OCIS_URL contained the trailing slash at the end, that's why some URLs returned by the system were malformed. The desktop client worked fine, though. Nevertheless, I'm sure that this bug has to be reported to ocis itself.
Actual behaviour
Login in the client is not working with the error "unknown error".
Expected behaviour
Login should work.
Steps to reproduce
Can this problem be reproduced with the official owncloud server? (url: https://demo.owncloud.org, user: test, password: test) Nope, it works
Environment data
Android version: 13 (TKQ1.221114.001)
Device model: Redmi Note 11 (2201117TY)
Stock or customized system: stock
ownCloud app version: 4.1.1 from Google Play
ownCloud server version: OCIS 4.0.2 from docker hub with such envs PROXY_TLS: "false" IDM_CREATE_DEMO_USERS: "false" OCIS_URL: https://sub.domain.org/ OCIS_INSECURE: "true"
The problem is, that after successful authentication client sends requests to //remote.php/dav/files/ or //ocs/v2.php/cloud/user. The duct tape fix I was able to implement is to add
rewrite ^//(.*)$ /$1 last;
in the Nginx config.Logs
Web server error log
ownCloud log (data/owncloud.log)