notes icon indicating copy to clipboard operation
notes copied to clipboard

Page reload needed to display new note or changed category

Open phil-lipp opened this issue 2 years ago • 4 comments

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

  • Client 1

    • Browser: Firefox 120.0.1
    • OS: Windows
  • Client 2

    • Browser: Safari
    • OS: iOS 17.2

phil-lipp avatar Dec 20 '23 16:12 phil-lipp

Can confirm this bug on Firefox 121.0.1 on Windows 11.

broizter avatar Jan 13 '24 16:01 broizter

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

aidan-lemay avatar Jan 15 '24 11:01 aidan-lemay

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

HolgerHees avatar Mar 30 '24 15:03 HolgerHees

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

cordlord avatar Jun 14 '24 13:06 cordlord

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

Are you still experiencing this behavior?

joshtrichards avatar Aug 08 '24 12:08 joshtrichards

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.

cordlord avatar Aug 08 '24 13:08 cordlord

Confirm fixed for me. Thanks for your work!

phil-lipp avatar Aug 09 '24 07:08 phil-lipp

works for me too. :-)

HolgerHees avatar Aug 09 '24 12:08 HolgerHees