`ETag` is not updated when an attachment has been deleted from the files app
Nobody has claimed this yet.
- 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:
- Add attachment
xyz.jpgto any card - Synchronize with Deck Android app - you will see the image as a cover card and in the attachments section
- Delete the
xyz.jpgfile from the Nextcloud Files Web UI or via the Nextcloud Files Android app - The attachment does no longer appear in the Deck Web UI
- The attachment is still present on the Deck Android app because the
ETagdid not change and the Deck Android is not aware of the changed items - Temporarily disabling
ETagsin 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

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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