android icon indicating copy to clipboard operation
android copied to clipboard

Download fails for files in folders with special characters

Open Telefza opened this issue 3 years ago • 5 comments

Steps to reproduce

  1. Create folder with a questionmark at the end, e.g. "newFolder ?"
  2. Put some file in "newFolder ?"
  3. Try sync from android app

Expected behaviour

  • Sync the folder with the file in it

Actual behaviour

  • Fails to sync.

Environment data

Android version: 11

Device model: Nokia 4.2

Stock or customized system: Stock

Nextcloud app version: 3.16.0

Nextcloud server version: 21.0.1

Reverse proxy: Nope

Logs

Android app debug output

connected phone via usb and ran: adb logcat | grep "$(adb shell ps | awk '/com.nextcloud.client/{print $2}')" > logcatOutput.txt

This is the error I get

04-01 12:54:43.268 14157 15449 E DownloadFileRemoteOperation: Download of path/to/me/file/newFolder ?/stuff.txt: Unrecovered transport exception

Telefza avatar Jun 04 '21 19:06 Telefza

reproduced on master.

@tobiasKaminsky I guess we don't escape the ? in the folder-name with %3F but that is just a guess. Do you remember where we do the escaping(s)? Quick search didn't find anything useful :(

AndyScherzinger avatar Jun 07 '21 09:06 AndyScherzinger

Reproduced also with the : character. Same exception.

AlvaroBrey avatar Dec 01 '21 09:12 AlvaroBrey

Also reproduced with < character. I guess > won't work too.

vfosnar avatar Mar 12 '22 20:03 vfosnar

Observed, that this problem occurs on a Pixel6 with Android 12, does not occur on a Samsung Galaxy Tab S6 with Android 9. (Accessing the same server nc 24.0.4 with Android-app 3.21.2)

RowhamD avatar Sep 11 '22 09:09 RowhamD

Observed furthermore that:

  • filenames are affected, too
  • .txt-files and .md-files are an exeption! (If you have a .txt- or .md-file having :?<> in its path and/or filename it is possible to open them in the Android-app - maybe because the Nextcloud internal editor is used to open these files?)
  • .odt- or .ods-files will
    • work, too, if CollaboraOffice is installed and you just tap on them to open CollaboraOffice
    • won't download if you choose "download" from their 3dot-menu

RowhamD avatar Sep 11 '22 10:09 RowhamD

Yes files are afftected as well e.g. Foo: Bar - (C64#).mp3 or inverted ? or 01. ¡Chakra:Red! - Track 1.flac

twinkybot avatar Feb 15 '23 16:02 twinkybot

Can this be upvoted?

twinkybot avatar Feb 15 '23 16:02 twinkybot

Related: #2711

AlvaroBrey avatar Feb 15 '23 16:02 AlvaroBrey