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

Avoid SQL error when fetching view config for zero-layer dataset #6912

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

fm3
Copy link
Member

@fm3 fm3 commented Mar 13, 2023

Due to a race condition with dataset import / report from datastore, it can happen that a view config is requested for zero layers. Since in () is invalid SQL, we need to catch this. The error is harmless, but for consistency I’d say this is the way to go.

fixes #6911

@fm3 fm3 added the backend label Mar 13, 2023
@fm3 fm3 requested a review from normanrz March 13, 2023 08:37
@fm3 fm3 self-assigned this Mar 13, 2023
@fm3 fm3 merged commit 0f6233f into master Mar 13, 2023
@fm3 fm3 deleted the viewconfig-sql-error branch March 13, 2023 08:56
hotzenklotz added a commit that referenced this pull request Mar 13, 2023
…pdown-menu

* 'master' of github.com:scalableminds/webknossos:
  Avoid SQL error when fetching view config for zero-layer dataset (#6912)
  Fix date formatting for VX reports (#6908)
  Fix rare crash when viewing shared annotation (#6892)
  Slim down view mode dropdown by using icons (#6900)
  Logging on password reset/change (#6901)
  When merging volume tracings, also merge segment lists (#6882)
  avoid spinner when switching tabs in dashboard (#6894)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQL Error, reading view configuration for zero layers
2 participants