ether / etherpad-lite

Etherpad: A modern really-real-time collaborative document editor.
http://docs.etherpad.org/
Apache License 2.0
16.48k stars 2.84k forks source link

Removing a group through the HTTP API does not remove the group completely #6560

Open Alienmaster opened 1 month ago

Alienmaster commented 1 month ago

Describe the bug When removing a group through the HTTP API call deleteGroup and listing the groups with listAllGroups the group is still in the list. To Reproduce Steps to reproduce the behavior:

  1. Start a local etherpad instance with an API-KEY
  2. Create a group with createGroup
  3. Remove the group with deleteGroup
  4. List the existing groups with listAllGroups

Expected behavior listAllGroups should return an empty list.

Server (please complete the following information):

hirsm commented 1 month ago

Additionally, when I try to delete a group with deleteGroup, the feedback message is {"code":1,"message":"sessionID does not exist","data":null} and group still exists.

Alienmaster commented 1 month ago

I did not check further, but there seems also be a problem with deletePad. Can you confirm this as well?

SamTV12345 commented 1 month ago

Could you try /delete/group?

hirsm commented 1 month ago

delete/group leads to {"code":3,"message":"no such function","data":null}

/deletePad works as planned, aka deletes a pad (always worked, never had a problem with it)

SamTV12345 commented 2 days ago

Describe the bug When removing a group through the HTTP API call deleteGroup and listing the groups with listAllGroups the group is still in the list. To Reproduce Steps to reproduce the behavior:

  1. Start a local etherpad instance with an API-KEY
  2. Create a group with createGroup
  3. Remove the group with deleteGroup
  4. List the existing groups with listAllGroups

Expected behavior listAllGroups should return an empty list.

Server (please complete the following information):

  • Etherpad version: GitHub develop Branch eebdd1e
  • OS: Ubuntu 22.04
  • Node.js version (node --version): 20.16.0
  • npm version (npm --version): 10.8.1
  • Is the server free of plugins: yes

Oh no it is worse than I thought. I think it is the database itself. When I stop Etherpad and restart it the group is gone.