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

Open
pavish opened this issue Oct 1, 2024 · 0 comments
Assignees
Labels
type: bug Something isn't working

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 the type: bug Something isn't working label Oct 1, 2024
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant