nextcloud / nextcloud/richdocuments

Cant remove stale users, and their last-edited cells wont display

Open
#1,992 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug integration: built-in code server
Dominant language
JavaScript
Stars
453
Forks
147
Avg merge
14h 54m
Merged PRs (30d)
83

Description

Reposting another user's issue as I am now experiencing the exact same thing. If a user disconnects improperly, it orphans their user and I cannot remove that user, and any cell they were editing becomes "locked" as in, I can edit the content but it wont display it.

How can I kick users (particularly guest users)? This is important not only for orphaned users but also for potential "griefers".

My personal setup is NC 23.0.0, Richdocuments 5.0.1, and richdocumentscode 21.11.6

https://help.nextcloud.com/t/stale-connections-to-collabora-documents/125628

I set up the built-in CODE server in my NC instance (version: 21.0.2). I noticed that if reload the page or jump to another URL while editing a spreadsheet concurrently with my colleagues and then come back to editing the document, my user is listed multiple times in the list of connected users (i.e. the icons near the share icon on top-right). This does not happen when closing the document with the x button and then coming back, so it looks somewhat like if I don’t exit “properly” then the next time I come in to edit the document the system see me as a new user, and my old connection to the document is still alive but stale.
Does this make sense (my phrasing for sure does not, but I hope you understood the issue)? Is this intended behavior a bug, or a misconfiguration of my instance?
Thanks in advance for any help you might provide.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the stale-user behavior with the reported Nextcloud 23.0.0, Richdocuments 5.0.1, and richdocumentscode 21.11.6 setup, then trace how disconnected users and locked cells are handled. Done means stale or guest users can be removed and their edited cell content displays normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.