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: Error parsing $permissions #68

Open
2 tasks done
Weav3r opened this issue Jan 22, 2025 · 0 comments
Open
2 tasks done

🐛 Bug Report: Error parsing $permissions #68

Weav3r opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Weav3r
Copy link

Weav3r commented Jan 22, 2025

👟 Reproduction steps

Hello, please the new update (12.2.0) of the sdk breaks existing implementations of models (e.g. Document, User, Bucket, etc) fromMap methods breaking due to type change of $permissions from List to List<String>.
The new changes throws an Could not update user: type 'List<dynamic>' is not a subtype of type 'List<String>' exception for creating a document or get a user with no permissions [].
Pinning my dependency to 12.1.0.

👍 Expected behavior

Models should successfully parse the json response

👎 Actual Behavior

Models fail to successfully parse the json response

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Linux

🧱 Your Environment

appwrite 1.6.0

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

@Weav3r Weav3r added the bug Something isn't working label Jan 22, 2025
@Weav3r Weav3r changed the title 🐛 Bug Report: 🐛 Bug Report: Error parsing $permissions Jan 22, 2025
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

1 participant