Skip to content

Reproducible "The document has been changed outside of the editor. The changes cannot be applied." #1083

@bentolor

Description

@bentolor

The Rich Text Editor continues to get in my way and provoking data loss due to lost changes. The main reason is that the editor shows the The document has been changed outside of the editor. The changes cannot be applied.-dialogue and leaves the user to pick the right button.

There are several constellations this error occurs consistently in any of the following cases:

  • Switching from Rich Text to Plain Editor and back
  • Sharing a note file across users and editing in turns
  • Editing the markdown externally via file sync

Steps to reproduce

  1. Edit & create a note. Ensure it is saved by clicking the check mark with the red dot in the UI.
  2. In Settings: Change Display mode to Open in edit mode
  3. Edit something. Save it with [Ctrl-S]
  4. In Settings: Change Display mode back to Open in rich text mode
  5. Conflict dialogue appears

On similar lines one can provoke/reproduce the same error for any of the other use-cases.

Expected behaviour

The rich-text editor should not keep any (outdated) cached version directly after save and claim potential data-loss or differences to the stored version.

Instead it should start fresh from the saved version in any case you left it saved.

Actual behaviour

  • You are always presented with a conflict resolution screen
  • In case you did external edits, you will have differences
  • The rich text editor even presents outdated/stale version.

Honestly: I don't understand the whole need for background caching across editor sessions.

Server

Please complete the following information.

  • Notes app version: 4.8.1 (up-to-date)
  • Nextcloud version: 27.0.1 (up-to-date)
  • OS: Linux
  • Web server: Apache (Official Nextcloud Docker Container)
  • PHP version: 8.2.8 (Official Nextcloud Docker Container)
  • Database: pqsql (Official Nextcloud Docker Container)

Nextcloud configuration:

``` { "system": { "htaccess.RewriteBase": "\/", "memcache.local": "\\OC\\Memcache\\APCu", "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "localhost", "***REMOVED SENSITIVE VALUE***" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "pgsql", "version": "27.0.1.2", "overwrite.cli.url": "http:\/\/localhost", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_sendmailmode": "smtp", "mail_smtpauth": 1, "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpsecure": "tls", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "maintenance": false, "theme": "", "loglevel": 1, "overwriteprotocol": "https", "default_phone_region": "DE", "app_install_overwrite": [ "tasks", "issuetemplate", "drawio", "breezedark" ], } } ```

Client

Please complete the following information.

  • Browser (incl. version): Firefox 116
  • OS: Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeature: Rich TextRelated to the Nextcloud Text editor integrationneed to reproduceIssue that has not been reproduced

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions