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 Report: Collection not found error #5750

Closed
2 tasks done
devmarwat opened this issue Jun 26, 2023 · 7 comments
Closed
2 tasks done

🐛 Bug Report: Collection not found error #5750

devmarwat opened this issue Jun 26, 2023 · 7 comments
Assignees
Labels
bug Something isn't working product / databases Fixes and upgrades for the Appwrite Database.

Comments

@devmarwat
Copy link

👟 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?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@devmarwat devmarwat added the bug Something isn't working label Jun 26, 2023
@devmarwat
Copy link
Author

The same happens when Permissions are not set yet, giving Collection not found.

@joeyouss
Copy link

Hi @devmarwat
Your issue template says version 1.2.x but your header says 1.3.7, what is the version on which you are facing this?

@joeyouss joeyouss self-assigned this Jun 29, 2023
@TechComet
Copy link

this issue in all versions
+1

@devmarwat
Copy link
Author

Hi @devmarwat Your issue template says version 1.2.x but your header says 1.3.7, what is the version on which you are facing this?

1.3.7 is the version

@stnguyen90 stnguyen90 changed the title Some Major issues with version 1.3.7 Exceptions code / class 🐛 Bug Report: 🐛 Bug Report: Some Major issues with version 1.3.7 Exceptions code / class Jul 12, 2023
@stnguyen90 stnguyen90 added the product / databases Fixes and upgrades for the Appwrite Database. label Jul 12, 2023
@stnguyen90
Copy link
Contributor

@devmarwat,

it gives no Collection Found error

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.

@stnguyen90 stnguyen90 changed the title 🐛 Bug Report: Some Major issues with version 1.3.7 Exceptions code / class 🐛 Bug Report: Collection not found error Jul 17, 2023
@stnguyen90
Copy link
Contributor

@devmarwat, have you had a chance to verify the user has access to the collections?

@stnguyen90
Copy link
Contributor

Closing due to inactivity

@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / databases Fixes and upgrades for the Appwrite Database.
Projects
None yet
Development

No branches or pull requests

4 participants