nextcloud / nextcloud/ios

Existing files with "ä" in the filename are silently overwritten when a new file with the same name is uploaded

Open
#2,667 1 comment 0 reactions 1 assignee View on GitHub

@marinofaggiana is already working on this.

Since Nov 14, 2023.

Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

Steps to reproduce
  1. Have a PDF file with the name "ä.pdf" (sic) in your Nextcloud.
  2. Have a different PDF file with the same name on your IOS device (Files app).
  3. Choose to share the file from your IOS device to Nextcloud.
  4. Select the folder where "ä.pdf" already exists.
  5. Upload.
Expected behaviour

Get a dialog to choose how to deal with the filename conflict.

Actual behaviour

No dialog. The the existing file is silently overwritten by the newly shared file.

Logs

Nothing in server logs, but here's the app log (at the default level).

Reasoning or why should it be changed/implemented?

The issue leads to data loss. I discovered this when I realized that saving bills from my banking app by sharing them to my Nextcloud had been doing this for who knows how long. (My electricity bills have the service provider name, "Oulun Energia Sähköverkko Oy" in their filename.)

Environment data

iOS version: 17.0.3

Nextcloud iOS app version: "Nextcloud Liquid for iOS 4.9.1.0"

Server operating system:

Web server: Apache 2.4.41

Database: MySQL/MariaDB 10.3.38

PHP version: 8.2

Nextcloud version: 27.1.3.2

Miscellaneous
  • This is not reproducible on Android (with my server), which is why I'm pretty sure the fault lies with the IOS app.
  • Also not reproducible on IOS with filenames with ASCII-only names (FWICT); this general case was apparently fixed when first reported as #1737.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.