-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client uses wrong base URL for /app/list endpoint #11296
Comments
ownCloud desktop should query what your
You could upload your debug log, including HTTP requests and responses here: Here you can find more information: |
@michaelstingl I have uploaded a client logfile to the upload link you gave me. My ownCloud server announces the following capabilities:
These URLs are correct when appended to the host but not correct if appended to the root URL. |
@DeepDiver1975 this looks wrong. Server issue? Does not respect proxy configuration via |
Proxy config is respected. That's why the generated url contains the sub folder. Anywhere on the web So in this case where owncloud is living in Where as |
In contrast relative path resolution would look like Clients should be capable to properly resolve both - in theory. In the end we can agree on using one or the other - but we should do it correctly. |
The client does not follow redirects. |
I am not talking about redirects. I only explain how paths are resolved .... |
|
I had the same infinite loop on /owncloud/owncloud/app/list with ownCloud server 10.13.2-1 installed behind a NGINX proxy and using the 5.0.0.12278 client, the following line in my NGINX config seems to stop this loop and the sync is working as usual
|
In my case at some point OwnCloud server started being bombarded very aggressively by users. After adding the same rule in Apache ( It seems to be happening with OwnCloud client 5+ - one user's client was first upgraded to 5.1.2.12600 (behaved the same way) and then downgraded to 4.2 (although I still saw it querying /owncloud/owncloud/app/list endpoint, the number of queries was reduced dramatically right away). |
@daniel-lerch looks like HTTP logging wasn't enabled
Here you can find more information: |
@michaelstingl can I create you an account on an ownCloud of mine to debug this issue yourself or do you need my HTTP logs? Because of so many comments from other users, I'm sure this issue is reliably reproducible. |
@daniel-lerch sure, you can send a test account to apps-at-owncloud.com |
@DeepDiver1975 could you point to a HTTP spec / RFC something? Needs to be checked across all clients. |
@DeepDiver1975 as a workaround, can the |
maybe by setting this to |
Nothing in by head directly ..... but you can basically demo this to yourself in a terminal .... both commands below have a different meaning depending on
ls /app/list
ls app/list |
@michaelstingl I sent you an email to the specified address with credentials to a test instance that you can use to debug this issue. |
Tested with |
Pre-submission Checks
Describe the bug
On initial startup, the ownCloud Desktop Client synchronizes files but is caught in an endless loop and requests the following endpoints:
GET /owncloud/owncloud/app/list
GET /owncloud/status.php
GET /owncloud/ocs/v2.php/cloud/user?format=json
GET /owncloud/remote.php/dav/avatars/USERNAME/128.png
PROPFIND /owncloud/remote.php/webdav/
See the logs section for a link to a server log excerpt.
This has two main effects:
Expected behavior
Instead of
/owncloud/owncloud/app/list
the client should request/owncloud/app/list
and not get caught in an endless loop.Steps to reproduce the issue
Screenshots
No response
Logs
Log excerpt from ownCloud Docker Container
Client version number
ownCloud 5.0.0.12278 8f9152
Qt Bibliotheken 6.4.3, OpenSSL 3.1.2 1 Aug 2023
verwenden die Erweiterung für virtuelle Dateien: wincfapi
OS: windows-10.0.22621
QPA: windows
Desktop environment (Linux only)
No response
Client package version and origin (Linux only)
No response
Installation path (Windows only)
C:\Program Files\ownCloud
Server information
ownCloud 10.13.2.3 from docker.io/owncloud/server:10.13
Note that my ownCloud server is running behind an NGINX reverse proxy with a custom base path, e.g. https://example.org/owncloud
Reverse proxy configuration via environment variables for ownCloud Container:
Reverse proxy configuration via
config.php
entries:NGINX configuration without workarounds:
Additional context
As a workaround, I mapped
/owncloud/owncloud/app/list
to/owncloud/app/list
in my NGINX reverse proxy configuration. With this workaround in place, all problems described here do not appear anymore.The text was updated successfully, but these errors were encountered: