nextcloud / nextcloud/notes

Deleted attachments in the note, files are not deleted

Open
#1,165 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Steps to reproduce

  1. Insert a link to an existing image. The file is copied to the Attachment folder.
  2. Delete the link inserted under point 1
  3. The file still exists in the Attachment folder.
Expected behaviour

If the link is deleted, the associated file must also be deleted.

Server

Please complete the following information.

  • Notes app version: 4.8.1
  • Nextcloud version: 27
  • OS: Linux
  • Web server: apache
  • PHP version: 8.1
  • Database: MariaDB

Nextcloud configuration:

``` If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder ```

Client

Please complete the following information.

  • Browser (incl. version):
  • OS:

Log files

Add relevant parts of your nextcloud.log and/or your browser's JavaScript console here.

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

The issue names no files or tests. Start by reproducing the attachment workflow in the Notes app, then trace where the link is deleted and where the copied file is stored; done means deleting the link also removes its associated file from the Attachment folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.