App: "Files Texteditor" Bug?

Hi there,

I’ll get the following Error when I edit a text file. Is it a bug?

{“reqId”:“",“remoteAddr”:"”,“app”:“files_texteditor”,“message”:“File: /test.txt modified since opening.”,“level”:3,“time”:“2016-12-17T13:15:33+01:00”,"meth$

How to reproduce:

  1. Create a new .txt file
  2. Open the created .txt file
  3. Write something & save it (Strg + s)
  4. Write something again and dont stop to write while nextcloud will auto-save the .txt file

Operating System:
Ubuntu 16.04 LTS
Apache 2.4.18
PHP 7.0.8
Nextcloud 11.0.0

Thanks for helping :slight_smile:

Did you setup a redis-cache? This normally uses locking that prevents other users (or clients) from changing this file during you edit it on the interface.

Are sync clients running? Is the file/folder shared?

Yes

config.php:

‘memcache.distributed’ => ‘\OC\Memcache\Redis’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘memcache.local’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘/var/run/redis/redis.sock’,
‘port’ => 0,
‘timeout’ => 0.0,
),

Yes

No

Ok, I didn’t see in the first place that you must continue editing. I got this error as well but finally the file could be saved. Can you open a bug report here:

Same here

Yes, I will open a bug report

1 Like

ref: https://github.com/nextcloud/files_texteditor/issues/23