nextcloud / nextcloud/notes

Attachments in shared notes are deleted after adding a category

Open
#1,470 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug feature: attachments feature: sharing
Dominant language
JavaScript
Stars
738
Forks
162
Avg merge
6h 2m
Merged PRs (30d)
35

Description

Bug Description
When a shared note is categorized by the recipient (without changing ownership), all attachments (e.g., images, videos) within the note are deleted from the server. This issue occurs specifically when the shared user modifies the note's category.

Steps to reproduce
User A creates a note with attachments (e.g., images, videos) in the Notes app.
User A shares the note with User B.
User B changes the category of the shared note (e.g., assigns it to "Work" or "Personal").
Check the note content after the category change.

Expected behaviour
The note and its attachments (images, videos, etc.) should remain intact when the recipient changes the category of a shared note.

Actual behaviour
Attachments within the note are deleted from the server, and the note no longer displays them. A "Failed to load" error appears for the missing attachments.

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 file or test is named. Start by reproducing the category change with a shared note containing attachments, then trace the shared-note category update and attachment persistence or deletion path. Done means changing the recipient's category preserves all attachments and they no longer produce a "Failed to load" error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
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.