gitea: Crash when attempting to remove user from an organization

  • Gitea version (or commit ref): 1.11.3 (also 1.11)
  • Git version: 2.20.1
  • Operating system: Debian GNU/Linux 10 (buster)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (cannot do administration on the try machine)
    • Not relevant
  • Log gist:

Description

Further information: running in Digital Ocean, smallest instance size available (1M memory, has previously been beautifully stable even under reasonable load).

We have a small organization (16 users). Two coders recently departed, so I went into the GUI (as an administrator) to remove them. One was fine, but when I attempted to remove the other it said that the account couldn’t be removed while the user was a member of an organization. I went to one of the two organizations they were a part of, went to the user list (/org/<organization_name>/members) and clicked “Remove” by the user name. The interface locked up - and in fact I eventually had to stop the gitea service (which takes a full 60 seconds). I restarted the service, tried to remove the user from the other organization they are a member of, had exactly the same lock-up (and solution).

I upgraded from 1.11 to 1.11.3 and the behaviour is identical. I’ve discovered that I can disable the account instead of removing the user so that’s a partial work-around, but this seems to be a significant bug.

Without admin access to try.gitea.io I can’t replicate there.

I’ll consider sending logs if you ask for them: I’m not rushing to do so because it reveals more personal info than I’m comfortable with. If you request logs, I may obfuscate them which may make them less useful …

Otherwise … massively impressed by this software. Thanks.

Screenshots

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 18 (9 by maintainers)

Most upvoted comments

@guillep2k Go to the Organization page. On the right, it says “People” and then further right of that there’s a count of those people. Click on the count. That page is <URI>/org/<org_name>/members , and you have a big red “Remove” button beside each member. That’s what I’m talking about.

I added a new user, then added them to just one organization: exact same problem as the previous user (who is in two organizations), crash on attempt to remove from the organization.

Since you pointed out the distinction, I tried removing the offending user from the Team rather than the Organization. And all is just fine and I was able to remove the users entirely - finally.

Please note that this all started because when I attempted to delete a user, a big warning came up: “This user is a member of an organization. Remove the user from any organizations first.” It doesn’t say “remove the user from any teams first.” So I tried to remove them from the organization(s).

I’m hoping that this distinction is the problem and will lead to a fix. If you still want/need more debug output, get back to me next week …