nextcloud / notes

✎ Distraction-free notes and writing
https://apps.nextcloud.com/apps/notes
GNU Affero General Public License v3.0
623 stars 133 forks source link

Possible bug on Notes app version 4.10.0 #1298

Closed souovan closed 4 months ago

souovan commented 6 months ago

Steps to reproduce

  1. Access Notes application
  2. Try to create new or delete an existing one

Expected behavior

The application should create and exibihit the new note or delete the existing one

Actual behavior

Nothing happens in both cases, making it necessary to forcefully refresh the page to show the change

Host OS

Running on:

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Nextcloud AIO version

Nextcloud AIO v8.2.0

Current channel

latest

Szwendacz99 commented 5 months ago

Can confirm, this happens for me as well. You probably should change the issue title to more descriptive of this exact case.

fitus85 commented 5 months ago

Create works for me, but I can delete a note, it disappears, reload the page or select other note and note is back again.

I testet to workaround deletion with in files / Note-Folder. But "the action has failed".

@juliushaertl can you help, i think this should be fixed soon.

ycecube commented 4 months ago

When trying to create a new note I can see the following in the console:

notes.js:156 
 DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at Object.insertBefore (https://FQDN/custom_apps/notes/js/notes-main.js?v=77e13474-2:2:2490465)
    at m (https://FQDN/custom_apps/notes/js/notes-main.js?v=77e13474-2:2:2503984)
    at https://FQDN/custom_apps/notes/js/notes-main.js?v=77e13474-2:2:2503270
    at f (https://FQDN/custom_apps/notes/js/notes-main.js?v=77e13474-2:2:2503501)
    at b (https://FQDN/custom_apps/notes/js/notes-main.js?v=77e13474-2:2:2504692)
    at https://FQDN/custom_apps/notes/js/notes-main.js?v=77e13474-2:2:2506479
    at w (https://FQDN/custom_apps/notes/js/notes-main.js?v=77e13474-2:2:2506532)
    at Qa.nodeOps [as __patch__] (https://FQDN/custom_apps/notes/js/notes-main.js?v=77e13474-2:2:2507667)
    at e._update (https://FQDN/custom_apps/notes/js/notes-main.js?v=77e13474-2:2:2483534)
    at o.r (https://FQDN/custom_apps/notes/js/notes-main.js?v=77e13474-2:2:2515098)

Nextcloud version: 29.0.3 (AIO - v9.1.0) Browser: Microsoft EDGE (126.0.2592.81) and Firefox (127.0.2) OS: Windows 11 Pro (23H2 - 22631.3810)