-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Cannot download from nextcloud instance hosted at subfolder #772
Comments
@provokateurin Is this reproducible on your end? |
I think Nextcloud in a subfolder is always a buggy experience. I can try reproducing this and see if this is a problem in our library. |
@AdmerStroh you are able to upload a file to a server hosted on a subfolder, but not able to download files from the same instance at the subfolder, right? Would it be possible to capture some logs that could contain an error message? I suspect some path sanitization or traversal is not working properly (if you are able to upload but not download). |
@provokateurin Yes that is correct. Upload works, download does not work. Could you please give me a quick explanation on how to capture the log and should i capture it in Saber or my nextcloud instance? Kind regards |
I guess you can either run the flatpak from command line or use adb to get logs from your Android device. You don't need to do it though, I think I already have enough information to reproduce it (as long as it is a problem in our Nextcloud library and not in Saber). |
I tried to get you some logs, but unfortunately my skills are a bit limited, I am sorry :/ When running the flatpak from the command line, even with the verbose flag, I do not get any error message when I try to sync, but still nothing is downloaded. |
I have the same issue. |
@dedfritzi thanks for already checking. I haven't done the testing myself, but really sounds like it's a problem in Saber @adil192 |
Copying from another issue #780: I have experienced this problem as well. I have updated nextcloud from 27, to 27.0.1. And I have changed the alias in sites-enabled from "/nextcloud" to "/" to force it to be on the root of the webserver and not have "/nextcloud" in the URL. (Nextcloud server runs apache and is behind a NGINX Proxy Manager so changing the url was easy.) That didn't resolve it so I also deleted the Saber folder on nextcloud. I readded it on my phone and then force quit and restarted the application. Then I force quit and readded on my tablet. The notes from the phone are now on the tablet, but not the other way around. New notes copy and I see that on my phone. So I probably should have removed the saber folder and then promptly used the tablet instead of the phone. Either way, it looks like syncing is broken if the nextcloud URL is not right at the root. It was a little frustrating to lose the notes on my tablet but I recently started using the app so it wasn't much to replace. Sync goes both ways now that I have the URL changed, but I had issues getting things in folders to sync. Will try again tonight but for now everything is in the root of the saber directory and is working. |
Please can someone on this thread make me an account on their subfolder nextcloud instance? |
Any news on this? It fails her with Android an Desktop (appimage) version (version 24.4) On sync I get a flood of
and the file shows up on the server Saber directory. After "syncing" a while it changes to
The duplication of "webdav" in this seems suspicious... |
I am experiencing the same behavior. The error message I see is the following: Error Log
If I can help with any testing just let me know :) PS: I see this error on linux and android both on version 0.25 |
As @MichaelNiemetz mentioned the error seems to be connected to the duplication of When I copy the uri from my previous error log and paste it in the browser search bar I get a "not found" page from nextcloud. ❌ https://abc.de/nextcloud/remote.php/webdav/webdav/Saber/123.sbe So far I was not able how/where the URI is created and why there is the duplicate. |
This PR of the dart/flutter plugin might be related. |
It will not fix the problem. @dedfritzi reported this:
so I'm pretty sure it is a Saber and not nextcloud package problem. |
Ok I actually found one subpath related problem which might be the cause for this. |
Could someone who faces the problem rebuild the app with a dependency override for nextcloud/neon#2562 to check if it works with that fix? |
Nice! I used the fix (nextcloud/neon#2562) and build saber for linux with it. I see no errors in the log/console output. |
Awesome, then I hope a new release of the package can be done this week and then @adil192 can bump the version to fix this issue. |
A new version of the package was released and I created a PR: #1372 |
Describe the bug
When using a nextcloud instance which is hosted at a subfolder of a domain, e.g. example.com/nextcloud, there is a bug that while login and upload works, it is not possible for Saber to download files from the Nextcloud Server.
When using a nextcloud instance hosted on a subdomain or on the base url, downloading works.
To reproduce
Expected behavior
Downloading notes from nextcloud on a subfolder e.g. example.com/nextcloud/ should work.
Saber version
0.14.3
Device
Android 13; Linux Flatpak
Anything else?
No response
The text was updated successfully, but these errors were encountered: