nextcloud / nextcloud/deck

`ETag` is not updated when an attachment has been deleted from the files app

Open
#4,420 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature parity feature: api feature: attachments
Dominant language
JavaScript
Stars
1.4k
Forks
354
Avg merge
1d 10h
Merged PRs (30d)
43

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Add attachment xyz.jpg to any card
  2. Synchronize with Deck Android app - you will see the image as a cover card and in the attachments section
  3. Delete the xyz.jpg file from the Nextcloud Files Web UI or via the Nextcloud Files Android app
  4. The attachment does no longer appear in the Deck Web UI
  5. The attachment is still present on the Deck Android app because the ETag did not change and the Deck Android is not aware of the changed items
  6. Temporarily disabling ETags in the Deck Android apps settings will make the attachment also disappear from the Deck Android app

Expected behavior
The Deck Web app should change the ETags when the file has been deleted just as it does when an attachment gets deleted from within the Deck Web app.

Screenshots
image

Deck: 1.8.3
Nextcloud version: 25.0.3

Context

Originally reported in the help forum: https://help.nextcloud.com/t/can-not-remove-cover-images-on-cards-by-deleting-imagefile-from-deck-folder/151670
Investigated within https://github.com/stefan-niedermann/nextcloud-deck/issues/1405

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

Reproduce the attachment deletion flow across the Deck Web UI, Nextcloud Files Web UI or Files Android app, and Deck Android app, focusing on ETag changes. Compare deleting an attachment in Deck with deleting its file externally; done means the ETag changes after external deletion so the Android client removes the attachment without disabling ETags.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.