
Hi, I was using the databases.getDocument but the response i got was like {total: 1, documents: [{}]}. Its like calling the list document function. While checking the docs and from what i have tested earlier, i should be getting just a document object.
Any Idea why this is happening?

It seems like if i provide the document id as a blank text, example: " ", it would return the response like a list documents would

In the docs it says the document id is required, but providing it with an empty sting value returns data....

Yes, our route matching behaves oddly if a path parameter is an empty string. We're working on fixing this now. Here's the related issue: https://github.com/appwrite/appwrite/issues/5310

Gotcha, it was really confusing, is there any serious issues identified with the bug? anything being deleted or something?

As the issue mentions you could end up hitting the wrong endpoint. So deleting a file with an empty file id can call the delete bucket endpoint

but it shouldn't delete anything right?

If access permits, it will
Recommended threads
- Creating a relationship with nested obje...
{ "data": { "name": "DiDi", "type": "Software Development", "userJobs": [{ "$id": "68cbf1e2003612fb13ca", "j...
- Realtime integration with SSR auth
Hey, I have a nextjs website with SSR auth, works great. I use a session client for user verification and an admin client with API key. Both is used with node-...
- Adding "name" column to table creates 2-...
As stated, im adding the "name" column to one table, it adds 4 duplicates. In another table it adds 3 duplicates, and when I delete 1 of them, all duplucates di...
