Android: Enhance error message when failing to sync file due to illegal filename

Created on 14 Jun 2018  Â·  2Comments  Â·  Source: nextcloud/android

I accidentally had a directory in my nextcloud which contained a colon in its filename, e.g. tro:lol. Btw, this is totally legal in unix and I think in OSX, aswell.

When trying to sync the folder (to the fat32 sdcard) with the android client, i get an error message.

Actual behaviour

  • A notification is sent:
Download failed
Could not download tro:lol

In case a directory contains a colon, the dir including it's content does not sync.
In case a file contains the colon, the file is not synced.

Expected behaviour

  • As far as I know the sync to external SD card can't work because on fat32, : is a reserved char. The error message should be more specific, e.g.:
Download failed
Could not download tro:lol : Illegal filename

Steps to reproduce

  1. Create files on workstation in synced nextcloud folder: mkdir tro:lol; cd tro:lol; touch 1 2 3
  2. wait till on server
  3. in Android app, select the three dots of the tro:lol entry and select Sync.

Environment data

Android version: 7.1.2

Device model: Samsung S5 (klte)

Stock or customized system: LineageOs (microg)

Nextcloud app version: 3.1.0

Nextcloud server version: 13.0.2-1

bug stale

Most helpful comment

Correct, we can enhance the error message, but the underlying error we cannot change…

All 2 comments

Correct, we can enhance the error message, but the underlying error we cannot change…

This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ikke-t picture ikke-t  Â·  3Comments

JSoko picture JSoko  Â·  3Comments

JSoko picture JSoko  Â·  3Comments

daywalk3r666 picture daywalk3r666  Â·  3Comments

Bugsbane picture Bugsbane  Â·  3Comments