Back

[SOLVED] Invalid, chaotic database responses after update to 1.3

  • 1
  • Databases
  • Flutter
Argel
13 Apr, 2023, 07:00

Yes, I have.

TL;DR
The user experienced invalid and chaotic database responses after updating to version 1.3. They downgraded to version 1.2 as a temporary fix. The support team acknowledged the issue and mentioned that it was being worked on. Some users suggested that the problem could be related to a bug in document security. No ETA for the fix was provided.
Argel
13 Apr, 2023, 07:02

All users can create documents. Other things handles document level security.

Meldiron
13 Apr, 2023, 07:03

Out of curiosity, could you do following?

  • Disable document security
  • Add read permission to any

With those changes, does offset still miss-behave?

Meldiron
13 Apr, 2023, 07:06

On my end, offset seems to behave as expected. With 685 documents and offset of 600, I get 85 documents.

Argel
13 Apr, 2023, 07:07

Thank you. Please give me 10 minutes please. I must do something first.

Argel
13 Apr, 2023, 07:27

Sorry for waiting. Other problems aroused.

Argel
13 Apr, 2023, 07:27
Argel
13 Apr, 2023, 07:27

Yeah. Like this it works. Seems to be the case with document level security.

Argel
13 Apr, 2023, 07:43

Another thing. I don't know if I am not doing something wrong. But It seems to be that I received only 852 documents with unique ids. Because the two received I already have in my map of elements {docId: value}. So 2 documents I didn't received.

Argel
13 Apr, 2023, 07:52

But why It wouldn't work for a new project in the appwrite instance?

Meldiron
13 Apr, 2023, 08:09

@Jake any idea if 1.3 could be affecting counting and offset pagination of document that have document-security enabled?

zlmr
13 Apr, 2023, 08:26

I am also having this issue, receiving 1 or 2 documents less in request.

  • If I call list documents with equal query for specific attribute I always receive all documents
  • If I list documents without query it is always missing some documents in response
  • Currently I don't have more than 10 documents per user in collections, but if I use limit query >= 40 I get all the documents, otherwise if limit query < 40 or if I don't include it - response is always missing some documents. I have no idea why 40, was just trying bunch of stuff while debugging these issues and somehow bigger query limit on list documents returns everything 🤷‍♂️

I am using android and ios sdk - same results on both.

Jake
13 Apr, 2023, 08:38

It's possible, will take a look

Meldiron
13 Apr, 2023, 08:39

That could all be related to bug in document security. Let's wait and see if Jake can spot any issue in the 1.3 codebase.

Meldiron
13 Apr, 2023, 11:13

@Jake I can confirm this is indeed bug with 1.3 and document security. I believe this will be worth 1.3.2 release.

Jake
13 Apr, 2023, 11:15

Yep same here, looking into a fix

Argel
15 Apr, 2023, 11:24

Any update on the issue?

Argel
15 Apr, 2023, 12:18

@Meldiron sorry for tagging. But I am a lot dependent on fixing this. Without this, everything breaks for me. Do you have please some information when I could expect the fix?

Meldiron
16 Apr, 2023, 08:07

I believe this is a high priority. Let's wait for @Jake on this.

Argel
16 Apr, 2023, 14:30

That would be great. Thank you for responding.

Drake
17 Apr, 2023, 15:39

@Argel, apologies for the delay. We've found the problem and are working through the fix. It's kind of big so it's taking some time. We'll give an ETA in a couple days after we make some more changes and write some more tests.

Argel
17 Apr, 2023, 18:21

No, problem. I was just quite nervous: no backup, need to submit it soon, app synchronization broken, almost zero experience.

Take your time to deliver fantastic software ❤️ . Downgrading to 1.2 worked, so I am fine.

Thank you for the info.

joeyouss
24 Apr, 2023, 07:57

[SOLVED] Invalid, chaotic database responses after update to 1.3

Argel
28 Apr, 2023, 04:36

Thanks for the info 🙂

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more