etherpad-lite
etherpad-lite copied to clipboard
Infinite loop on LEAVE/ENTER when pasting more than 9778 characters
Describe the bug
The UI shows a loopin "Connect" message when pasting about 10000 characters.
To Reproduce Steps to reproduce the behavior:
- Go to https://fr.lipsum.com/ and generate a Lorem ipsum with 10000 characters
- Select the generated text and copy
- Go to https://calut.fr/pad/p/bug_paste (my instance)
- Paste the text
- See result : message "Connecté" appears repeatedly
Expected behavior I expected the text to be simply pasted
Screenshots No screenshots as the issue shows a dynamic behaviour
Server (please complete the following information):
- Etherpad version: 1.8.17~ynh1
- OS: Yunohost (Debian 10)
- Node.js version (
node --version): Don't know - npm version (
npm --version): Don't know - Is the server free of plugins: yes
Desktop (please complete the following information):
- OS: Fedora 35
- Browser: Firefox
- Version 100
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
- The issue is simply solved by importing a text file instead of pasting directly.
- Thanks to dichotomy, I found that pasting 9778 characters is ok, the issue arise at 9779 (according to etherpad text statistics)
- Here is the journal on yunohost when the issue occurs :
[2022-05-12 15:56:31.273] [INFO] access - [ENTER] pad:bug_paste socket:E4Wl_FJ-dBsvfTGcAAI_ IP:127.0.0.1 authorID:a.0kWgiNR8c8VuC0Q0
[2022-05-12 15:57:12.068] [INFO] access - [LEAVE] pad:bug_paste socket:E4Wl_FJ-dBsvfTGcAAI_ IP:127.0.0.1 authorID:a.0kWgiNR8c8VuC0Q0
[2022-05-12 15:57:13.140] [INFO] access - [ENTER] pad:bug_paste socket:vYXvkBciQCjCg5-UAAJA IP:127.0.0.1 authorID:a.0kWgiNR8c8VuC0Q0
[2022-05-12 15:57:13.699] [INFO] access - [LEAVE] pad:bug_paste socket:vYXvkBciQCjCg5-UAAJA IP:127.0.0.1 authorID:a.0kWgiNR8c8VuC0Q0
[2022-05-12 15:57:15.154] [INFO] access - [ENTER] pad:bug_paste socket:1XhRqZYJnxMYKlnuAAJB IP:127.0.0.1 authorID:a.0kWgiNR8c8VuC0Q0
[2022-05-12 15:57:16.658] [INFO] access - [LEAVE] pad:bug_paste socket:1XhRqZYJnxMYKlnuAAJB IP:127.0.0.1 authorID:a.0kWgiNR8c8VuC0Q0
...
maybe related to #5454 ?
We are experiencing the same problem with far less characters about 500 is enough. But it did work with earlier versions.
I think this is the same as https://github.com/ether/etherpad-lite/issues/4951
Closed as duplicate of 4951.