DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

Formatting selected text while someone else is typing causes the typed text to either not be shown or be shown in the incorrect place

Open drebs opened this issue 8 years ago • 1 comments

Do you want to request a feature or report a bug?

Report a bug.

What is the current behavior?

This bug happens when typing collaborativelly in a .docx document using DocumentServer integrated with Nextcloud.

When person A is typing on a paragraph and person B selects a portion of text in the same paragraph and then applies formatting to it, then one of 3 things happen:

  • the cursor or person A blocks and part of the text being input by person A is simply not shown; or
  • the cursor of person A is temporarily displaced to the end of the portion of text selected by person B and part of the text being input by person A is shown there with the formatting applied to it; or
  • the cursor of person A blocks and some initial portion of the text selected by person B is doubled and appears without the formatting applied.

After the bug manifests and the formatting is applied, the cursor of person A and the effects of her typing both go back to normal.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

You need a Nextcloud installation integrated with DocumentServer, 2 people and a shared document to reproduce the bug.

  1. Create a .docx document and share it between persons A and B.
  2. Make both people open the document for collaborative editing.
  3. Make person A start typing a paragraph.
  4. While person A is typing, make person B select a portion of text in the same paragraph and apply some formatting to it (i.e. bold, italic, font size).
  5. Watch the bug manifest.

Here is a document produced as described above, while person A typed "One two three four" and person B selected "One" and made it bold: Buggy.docx. The result was "Onethre two four"

What is the expected behavior?

The cursor of person A should not be blocked neither displaced, the typed text should appear normally, and no extraneous text should appear elsewhere.

Did this work in previous versions of DocumentServer?

We had already noticed the same bug in DocumentServer 5.1.4 with Nextcloud 13 (not sure about the minor version).

DocumentServer version:

We are using DocumentServer 5.2.2 integrated with Nextcloud 14.0.2 using ONLYOFFICE Connector 2.0.4.

Operating System:

DocumentServer is running on an Ubuntu 14.04 Docker image.

Browser version:

When reproducing the bug as described above, browser versions were:

  • Person A: Mozilla Firefox 60.2.2esr 64bit.
  • Person B: Chromium 69.0.3497.92 (developer version) built on Debian 9.5, running on Debian 9.5 64 bits.

drebs avatar Oct 16 '18 13:10 drebs

Hi I'm reproduced your bug. I created an issue 39344 in our private bug tracker. Thanks for feedback.

HellRoad avatar Oct 16 '18 14:10 HellRoad