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

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

Open
Alienmaster opened this issue Aug 4, 2024 · 5 comments
Labels
Stale No recent activity

Comments

@Alienmaster
Copy link
Contributor

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
@hirsm
Copy link

hirsm commented Aug 5, 2024

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
Copy link
Contributor Author

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

@SamTV12345
Copy link
Member

Could you try /delete/group?

@hirsm
Copy link

hirsm commented Aug 6, 2024

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
Copy link
Member

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.

@github-actions github-actions bot added the Stale No recent activity label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale No recent activity
Projects
None yet
Development

No branches or pull requests

3 participants