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

[Bug]: It is possible to create collections for a non-existent tenant #2884

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

Comments

@levand
Copy link
Contributor

levand commented Oct 1, 2024

What happened?

I have a tenant ID that, to all appearances is valid and works in the UI console. However, it does not in fact exist in the data layer, since staging was wiped.

In this situation, it is possible to create a collection, and to have the request return successfully and provide a new collection ID. However, subsequent attempts to use that collection ID fail with a "collection does not exist error."

Apparently, it is possible for the system to create collections even when the tenant ID does not exist, provided the tenant ID can pass auth.

Versions

Staging as of 2024-09-30

Relevant log output

No response

@levand levand added the bug Something isn't working label Oct 1, 2024
rohitcpbot added a commit that referenced this issue Oct 15, 2024
[BUG] Schema changes related to Issue#2884 and
few other necessary constraints.

## Description of changes

*Summarize the changes made by this PR.*
 - Improvements & Bug fixes
  - Fix for Issue #2884.
  - Added additional constraints to the schema to avoid future issues.
 - New functionality
	 - n/a

## Test plan
*How are these changes tested?*

- [x] Tests pass locally with `make test` for golang

## Documentation Changes
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants