nextcloud / nextcloud/ios

Auto Photo Backup overwrites photos with same file name, even though one is edited.

Open
#2,728 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Steps to reproduce
  1. Take a photo.
  2. Duplicate the photo, then edit the duplicated photo. (iOS uses the same filename for both)
  3. Open app to begin auto upload, then wait.
  4. Check the photo folder, only to find that only one was uploaded.
Expected behaviour

The app should rename the files or ask the user for input, instead of forcing the upload.

Actual behaviour

App throws error "423 WebDAV Locked: Trying to access locked resources.", then proceeds to upload the second duplicated photo, overwriting the first one.

Screenshots

IMG_7563

Logs
If applicable, you can post the iOS app or server logs (removing any sensitive information).
Reasoning or why should it be changed/implemented?

It could cause photos not to be backed up properly, in some cases losing the photo because it got overwritten.

Environment data

iOS version: iOS 17.1

Nextcloud iOS app version: 4.9.6.1

Server operating system: TrueNAS Scale

Web server: nginx

Database: PostgreSQL 16.1 (Debian 16.1-1.pgdg110+1)

PHP version: 8.2.14

Nextcloud version: Nextcloud 28.0.1

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.

Research direction

No files or tests are named. Reproduce the auto-upload flow with two edited photos sharing an iOS filename, then trace how the 423 WebDAV Locked response and duplicate names are handled. Done means both photos are uploaded without one overwriting the other.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.