etherpad-lite icon indicating copy to clipboard operation
etherpad-lite copied to clipboard

Infinite loop on LEAVE/ENTER when pasting more than 9778 characters

Open djelouze opened this issue 3 years ago • 3 comments

Describe the bug

The UI shows a loopin "Connect" message when pasting about 10000 characters.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://fr.lipsum.com/ and generate a Lorem ipsum with 10000 characters
  2. Select the generated text and copy
  3. Go to https://calut.fr/pad/p/bug_paste (my instance)
  4. Paste the text
  5. 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
...

djelouze avatar May 12 '22 14:05 djelouze

maybe related to #5454 ?

DooMMasteR avatar May 19 '22 11:05 DooMMasteR

We are experiencing the same problem with far less characters about 500 is enough. But it did work with earlier versions.

mko-x avatar Jun 01 '22 19:06 mko-x

I think this is the same as https://github.com/ether/etherpad-lite/issues/4951

timmc avatar Sep 06 '22 14:09 timmc

Closed as duplicate of 4951.

JohnMcLear avatar Jun 21 '23 10:06 JohnMcLear