nextcloud / notes

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

Page reload needed to display new note or changed category #1188

Closed phil-lipp closed 4 weeks ago

phil-lipp commented 8 months ago

Steps to reproduce

  1. Create a new note or change an existing note's category
  2. see nothing
  3. reload page
  4. see changes

Expected behaviour

As before the 4.9.X update the changes should be displayed immediately.

Actual behaviour

Changes require page reload.

Server

Notes app version: 4.9.1 Nextcloud version: 28.0 OS: Debian 11 Web server: Apache PHP version: 8.1.26 Database: MariaDB

Nextcloud configuration:

``` { "system": { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": "***REMOVED SENSITIVE VALUE***", "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "28.0.0.11", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "default_phone_region": "DE", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "memcache.local": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 0, "password": "***REMOVED SENSITIVE VALUE***" }, "tempdirectory": "\/media\/ext_drive_one\/nextcloud\/data\/tmp", "mail_smtpmode": "sendmail", "mail_smtpauthtype": "LOGIN", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "enable_previews": true, "enabledPreviewProviders": [ "OC\\Preview\\Image", "OC\\Preview\\Movie", "OC\\Preview\\MKV", "OC\\Preview\\MP4", "OC\\Preview\\AVI", "OC\\Preview\\mov", "OC\\Preview\\HEIC", "OC\\Preview\\TIFF" ], "preview_max_x": "2048", "preview_max_y": "2048", "jpeg_quality": "60", "overwriteprotocol": "https", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "maintenance": false, "logfile": "\/media\/ext_drive_one\/nextcloud\/data\/nextcloud.log", "debug": true, "htaccess.RewriteBase": "\/", "overwrite.cli.url": "https:\/\/nextcloudpi\/", "app_install_overwrite": [ "podcast", "previewgenerator", "fulltextsearch", "files_fulltextsearch", "fulltextsearch_elasticsearch", "breezedark", "files_bpm", "drawio", "ransomware_protection", "files_trackdownloads", "extract", "metadata", "files_mindmap", "mediadc", "richdocumentscode", "richdocumentscode_arm64", "files_frommail", "files_markdown", "riotchat", "apporder", "facerecognition", "memories", "side_menu", "maps", "bookmarks_fulltextsearch" ], "loglevel": 0, "theme": "", "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-aarch64-glibc", "memories.ffmpeg_path": "\/usr\/bin\/ffmpeg", "memories.ffprobe_path": "\/usr\/bin\/ffprobe", "memories.transcoder": "\/var\/www\/nextcloud\/apps\/memories\/exiftool-bin\/go-vod-aarch64", "memories.no_transcode": false, "memories.qsv": true, "twofactor_enforced": "true", "twofactor_enforced_groups": [ "admin" ], "twofactor_enforced_excluded_groups": [], "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg", "memories.vod.ffprobe": "\/usr\/bin\/ffprobe", "memories.vod.disable": true, "memories.gis_type": 1, "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-aarch64", "data-fingerprint": "c954d870879ec9c2318b81bbc659859d" } } ```

Clients

broizter commented 7 months ago

Can confirm this bug on Firefox 121.0.1 on Windows 11.

aidan-lemay commented 7 months ago

Can confirm this bug

Windows 10 22H2 Firefox version 121.0.1 Google Chrome version 120.0.6099.217

NextCloud configured through Docker Composer, routed through an NGINX reverse-proxy

server {
    listen                  443 ssl;
    listen                  [::]:443 ssl;
    server_name             nextcloud.abc.xyz;
    ssl_certificate         /root/ssl/cert.pem;
    ssl_certificate_key     /root/ssl/key.pem;

    location / {
        proxy_pass http://nextcloud:80/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Edit: Additionally appears when attempting to delete a note. The GUI will show a message about being unable to access the note, no internet connection, and a generic error message before showing a message saying "Failed to Load File"

The note creation bug does NOT occur when creating the note from inside a category

HolgerHees commented 5 months ago

seams to be a duplicate of https://github.com/nextcloud/notes/issues/1187

cordlord commented 2 months ago

Adding to this that if you have the Notes page open in a Chromium browser and Firefox at the same time, this bug goes away and Firefox works normally

joshtrichards commented 4 weeks ago

Duplicate of #1298 or #1187 and likely fixed in 4.10.1.

Are you still experiencing this behavior?

cordlord commented 4 weeks ago

I'm not seeing it anymore. New notes are added to the list without a refresh and category changes are reflected without a refresh.

I'm running 4.10.1 now.

phil-lipp commented 4 weeks ago

Confirm fixed for me. Thanks for your work!

HolgerHees commented 3 weeks ago

works for me too. :-)