Skip to content

WebDAV: Don't allow two-way file sync #1785

@daniel-callejas-sevilla

Description

@daniel-callejas-sevilla

What does not work as expected?

When setting up a remote sync WebDAV server (Settings → Sync) with both "Download remote files" enabled and also "Upload local files" enabled, Photoprism will first download remote files as expected, but then will upload those same files back to the WebDAV server, creating duplicates.

Additionally, there is an issue with the upload path: The sync server is configured to download files only from WebDAV subfolder A/… The spurious uploads then happen on path A/A/… (duplicated A). Example: Photoprism downloads file A/some/sub/folder/picture.jpg and then reuploads it as A/A/some/sub/folder/picture.jpg.

How can we reproduce it?

Set up as described above.

What behavior do you expect?

Only files which were not downloaded from WebDAV sync server should be uploaded to a WebDAV sync server.

Can you provide us with example files for testing or screenshots?
N/A

What version you are using?

Running PhotoPrism® 211010-83b4f783-Linux-x86_64

Any other helpful information?

Due to #1781 I had to remove the sync target several times during the download phase. Maybe that has had an influence afterwards?

Metadata

Metadata

Assignees

Labels

enhancementEnhancement or improvement of an existing featurereleasedAvailable in the stable releaseuxImpacts User Experience

Type

No type

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions