Skip to content

WebDAV: Files uploaded from PhotoPrism to another server may be incomplete #3310

@Zaczero

Description

@Zaczero

1. What is not working as documented?

When trying to upload an image directly from PhotoPrism to PhotoPrism (WebDAV) without using SSL or Nginx proxy, the uploaded file is corrupted. Only a small portion of the file is uploaded and there is no error or warning on the uploader side.

2. How can we reproduce it?

Steps to reproduce the behavior:

  1. Setup 2 PhotoPrism instances
  2. Under /library/settings/services configure a one way WebDAV connection (for example to /import/)
  3. Attempt a photo upload from the gallery view at /library/browse
  4. Check the uploaded file size, after some time there will be an index error on the destination instance, because the image is not valid/corrupted

3. What behavior do you expect?

I expect the image to be successfully uploaded without any corruption.

4. What could be the cause of your problem?

It is possible that the issue is related to buffering, as putting PhotoPrism behind an Nginx proxy (with webdav support mod) (which buffers) has solved the issue.

This could be potentially related: #443

5. Can you provide us with example files for testing, error logs, or screenshots?

  • /library/errors: (invalid JPEG format: short Huffman data while decoding)

6. Which software versions do you use?

(a) PhotoPrism Architecture & Build Number: AMD64

(b) Database Type & Version: MariaDB

(c) Operating System Types & Versions: Linux

(d) Browser Types & Versions: Chromium

(e) Ad Blockers, Browser Plugins, and/or Firewall Software?: N/A

7. On what kind of device is PhotoPrism installed?

(a) Device / Processor Type N/A

(b) Physical Memory & Swap Space in GB: N/A

(c) Storage Type: HDD RAID NAS

(d) Anything else that might be helpful to know?: N/A

8. Do you use a Reverse Proxy, Firewall, VPN, or CDN?

No. Both instances are installed on the same machine and connected with a Docker network.

Metadata

Metadata

Assignees

Labels

easyEasy issue for beginnersreleasedAvailable in a stable release

Type

No type
No fields configured for issues without a type.

Projects

Status
Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions