-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 Report: Collection not found error #5750
Comments
The same happens when Permissions are not set yet, giving Collection not found. |
Hi @devmarwat |
this issue in all versions |
1.3.7 is the version |
I'm pretty sure you're seeing this because the user does not have access to the collection. I tested this by giving a user access to the collection and the List Documents API returned with 0 documents as expected. It's expected to show 404 when the user does not have access to the collection. This is in order to hide the fact that the collection exists. |
@devmarwat, have you had a chance to verify the user has access to the collections? |
Closing due to inactivity |
👟 Reproduction steps
db.ListDocument() with Query parameters but not Attributes yet created in Collection.
👍 Expected behavior
When there is no attribute yet created in Collection, it gives Collection not found error. It should give attribute not found.
Same, when no index is created for Query.search(), it gives no Collection Found error, instead of giving Index not found error.
👎 Actual Behavior
Should give exception of Attribute not created and Index not created.
🎲 Appwrite version
Version 1.2.x
💻 Operating system
Linux
🧱 Your Environment
1.3.7
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: