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

Server error (500) when there's a single database connected and admin user is not a collaborator #3903

Closed
pavish opened this issue Oct 1, 2024 · 1 comment · Fixed by #3948
Assignees

Comments

@pavish
Copy link
Member

pavish commented Oct 1, 2024

Description

  • Create a database if nothing exists. Make sure there's only one database at the end.
  • Open the database, remove yourself from the collaborator list.
  • Refresh the page. Or change url to homepage on the browser url bar (eg., localhost).
  • Notice a server error.
  • This also happens when directly visiting any database url where the user is not a collaborator, and even when visiting a url for a non-existent database eg, (http://localhost/db/10000/).

Probable cause

  • Since the user is not a collaborator on the database, creating the common_data would fail causing this 500.

Expected behavior

  • If the user is an admin, there should not be an error and the UI should show the database page with the error/add-yourself-as-a-collaborator message inside the page.
  • If the user is not an admin, the url should redirect to /databases.
@pavish pavish added this to the v0.2.0-testing.1 milestone Oct 1, 2024
@pavish pavish changed the title Server error (500) when directly visiting a database url where user is not a collaborator Server error (500) when directly visiting a database url where user is not a collaborator, or when only a single database is present Oct 1, 2024
@pavish pavish changed the title Server error (500) when directly visiting a database url where user is not a collaborator, or when only a single database is present Server error (500) when directly visiting a database url where user is not a collaborator Oct 1, 2024
@pavish pavish changed the title Server error (500) when directly visiting a database url where user is not a collaborator Server error (500) when there's a single database connected and admin user is not a collaborator Oct 1, 2024
@Anish9901
Copy link
Member

Fixed in #3948

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants