Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments are broken when editing a document #8407

Closed
pedropintosilva opened this issue Feb 27, 2024 · 4 comments
Closed

Comments are broken when editing a document #8407

pedropintosilva opened this issue Feb 27, 2024 · 4 comments
Assignees
Labels
23.05 bug Something isn't working

Comments

@pedropintosilva
Copy link
Contributor

pedropintosilva commented Feb 27, 2024

This was initially reported by @jospoortvliet in nextcloud/richdocuments#3470


Describe the bug
Opened a document from a Deck card in Deck. Loads nicely. But after inserting a comment, things go kaboom. See this video:

Screen.Recording.2024-02-14.at.14.38.09.mov

Reloading the doc puts the comment in the right place, but adding another is 💥 again.

Fun fact: it works fine when opened directly, so it is somehow due to Deck.

To Reproduce
Steps to reproduce the behavior:

  1. open a document
  2. Select text
  3. insert comment
  4. See error. now try scrolling and cry.

Expected behavior
well, normal behavior - comments added, scrolling etc still working.

Client details:

  • Laptop with Mac OS 14.3.1
  • Latest Firefox 122.0.1

Server details

cloud.nextcloud.com with Nextcloud server 28.0.2.5

Version of the richdocuments app
latest, I guess.

Version of Collabora Online
23.05.8.4 git hash: 96e80a8

Browser log

JS log

There is a section with the same name. Use doesSectionExist for existancy checks. bundle.js:14346:46
Uncaught TypeError: this.sectionProperties.container is null
    NextJS 7
bundle.js:14924:2
Uncaught TypeError: annotation.sectionProperties.container is null
    NextJS 3
bundle.js:15195:10
Uncaught TypeError: this._el is null
    NextJS 5
bundle.js:34823:40
Uncaught TypeError: comment.sectionProperties.replyCountNode is undefined
    NextJS 7
bundle.js:15539:69
@pedropintosilva pedropintosilva added bug Something isn't working unconfirmed labels Feb 27, 2024
@pedropintosilva
Copy link
Contributor Author

@juliushaertl

I don't see how that could be related to deck. @eszkadev Any idea based on the js errors?

@eszkadev

It might be some race on our side. Probably we try to duplicate comment: There is a section with the same name. Use doesSectionExist for existancy checks. We will investigate. Thank you for a detailed report.

@juliushaertl juliushaertl changed the title Comments are broken when editing a document from within Deck 😢 Comments are broken when editing a document Feb 27, 2024
@pedropintosilva
Copy link
Contributor Author

cc: @Ezinnem

@lpranam
Copy link
Member

lpranam commented Feb 27, 2024

probably this one should fix it if it was just related to the notebookbar: #8401

@timur-g timur-g added 23.05 and removed unconfirmed labels Feb 28, 2024
@timur-g
Copy link
Contributor

timur-g commented Mar 11, 2024

There was no reliable way to test this, although I experienced it prior to the fix. I will close with the assumption this is fixed.

@timur-g timur-g closed this as completed Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
23.05 bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants