-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: Can't upgrade with long attributes #6196
Comments
We'll revisit this if we see more demand for this |
Re-opening due to another case: https://discord.com/channels/564160730845151244/1249721750778806332 |
We should be able to bypass this validation error by calling |
2 tasks
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👟 Reproduction steps
iam35characterslonggggggggggggggggg
on 1.3.8👍 Expected behavior
Migration is successful
👎 Actual Behavior
Migration fails with:
This is because we paginate using a cursor and the $id that is used for the cursor is the $id for an attribute:
appwrite/app/controllers/api/databases.php
Line 117 in 5717fbe
which means a valid key of length 35 can result in an $id greater than 36 due to the
$db->getInternalId() . '_' . $collection->getInternalId() . '_'
prefix. Because the $id is greater than 36 chars, UID validation fails.🎲 Appwrite version
Version 1.4.x
💻 Operating system
Linux
🧱 Your Environment
Tested on 1.4.2
👀 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: