-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Files with special characters in their filename cannot be downloaded #3197
Comments
GitMate.io thinks possibly related issues are #1579 (Can't download files), #684 (Files containing "?" in their filename are not downloaded by the client), #685 (Directories containing ":" in their filename are not downloaded (synced) by the client), #764 (Android can not download any file), and #347 (Unable to download files). |
Is your storage configured to use internal or external/sdcard storage? |
Tried it on two devices, both configured to use external storage (not sure which filesystem type and how to find that out). Also found #685, so it might well be a duplicate of that. It would still be nice to have a workaround, as (for example) the subsonic app works perfectly well with identical settings on both devices (saves files to ext storage for offline playback). |
This comment was marked as outdated.
This comment was marked as outdated.
I have the same issue syncing a folder containing the following files (one filename per line, single quotes not part of the file name):
("same issue" = "when I try to sync the folder on my Android phone, I get 26 notifications about I renamed the files to This is on server version 24.0.3 (managed by Hetzner) and Android app version 3.21.0 (installed via F-Droid). |
Seeing this too, I think the issue is new since upgrading to nextcloud 24, but I also switched from the docker container to my distro's package, so I can't say for sure. It appears to be on the app side, the server logs show a clear OK:
Is there anything I can do on the app side to see debug logs, or any kind of clearer reason than "download failed"? |
Confirmed. Here's a trace: 2022-11-23 14:59:44.540 20101-20183 DownloadFi...eOperation com.nextcloud.client E Download of /Talk/welcome:1.md to /storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/tmp/test@192.168.1.x/Talk/welcome:1.md: Unrecovered transport exception
java.io.IOException: Operation not permitted
at java.io.UnixFileSystem.createFileExclusively0(Native Method)
at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:317)
at java.io.File.createNewFile(File.java:1006)
at com.owncloud.android.lib.resources.files.DownloadFileRemoteOperation.downloadFile(DownloadFileRemoteOperation.java:113)
at com.owncloud.android.lib.resources.files.DownloadFileRemoteOperation.run(DownloadFileRemoteOperation.java:88)
at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:205)
at com.owncloud.android.operations.DownloadFileOperation.run(DownloadFileOperation.java:180)
at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:205)
at com.owncloud.android.files.services.FileDownloader.downloadFile(FileDownloader.java:474)
at com.owncloud.android.files.services.FileDownloader.access$400(FileDownloader.java:88)
at com.owncloud.android.files.services.FileDownloader$ServiceHandler.handleMessage(FileDownloader.java:424)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.os.HandlerThread.run(HandlerThread.java:67) As expected this is a limitation of the underlying filesystem, more research needed |
While not encoding, the error message handling was improved in #11384 |
Actual behaviour
Trying to download many of my files (presumably those containing some special char, e.g. ":") results in an error.
Expected behaviour
All files with valid filenames on the server should be downloadable. If the app cannot deal with some chars, they should be encoded.
Steps to reproduce
Environment data
Android version:
6.0
Device model:
LG4
Stock or customized system:
Stock
Nextcloud app version:
3.3.0
Nextcloud server version:
14.0.3
The text was updated successfully, but these errors were encountered: