nextcloud / nextcloud/notes

copy/move notes when changing the notes path

Open
#390 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

design enhancement
Dominant language
JavaScript
Stars
738
Forks
162
Avg merge
6h 2m
Merged PRs (30d)
35

Description

Describe the bug
When changing the storage location existing notes get deleted.
Actually, the old "Notes" directory remains, but the txt-files wont moved to the new location.

To Reproduce
Steps to reproduce the behavior:

  1. create at least one note
  2. Change "Folder to save your notes" to e.g. "Documents/Notes"
  3. all previously created notes are gone
  4. Look at the HD on the old location: all note-files are existing

Expected behavior
All Existing notes gets copied to the new location.

Server (please complete the following information):

  • Notes app version: 3.0.3
  • Nextcloud version: 16.0.5
  • OS: Raspbian 9.11 (Kernel: 4.19.57-v7+)
  • Web server: apache2
  • PHP version: 7.3.9
  • Database: mysql 10.1.38

Client (please complete the following information):

  • Browser (incl. version): Google Chrome (mobile) 77.0.3865.92
  • OS: Android 7.1.1

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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

Start by locating the implementation of the “Folder to save your notes” setting and the handling that runs when its value changes. Reproduce the report with an existing .txt note, then verify that changing the setting leaves the note available in the new location without losing existing files.

Written by the indexing model from the issue text.

Assessment

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