android icon indicating copy to clipboard operation
android copied to clipboard

Prevent upload of files with filenames that contain invalid characters

Open kaystrobach opened this issue 2 years ago • 14 comments

⚠️ Before posting ⚠️

  • [X] This is a bug, not a question or an enhancement.
  • [X] I've searched for similar issues and didn't find a duplicate.
  • [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • [X] I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Use and App, which has a share dialogue.
  2. Use nextcloud as a target and select a folder
  3. upload the file

During the process you do not see the actual filename created, nor have an option to change it.

Expected behaviour

Options:

a) silently replace potentially illegal characters with an underscore (:, /, backslash, ...) b) warn user and let user change the filename c) warn user about the problematic filename and ask for permission to proceed like in a)

Actual behaviour

file with a filename like whatever_08:30.pdf is created and the user expects it to be synced to his desktop, which fails with a silent message in the sync log.

Android version

12

Device brand and model

Samsung

Stock or custom OS?

Stock

Nextcloud android app version

3.23.1

Nextcloud server version

25.0.1

Using a reverse proxy?

No

Android logs

no

Server error logs

not relevant here

Additional information

2023-01-10_12-50-36

Might be related to #2711

kaystrobach avatar Jan 10 '23 11:01 kaystrobach