Skip to content

Can create row with invalid id #10612

@bdblaere

Description

@bdblaere

👟 Reproduction steps

I used tablesDB.updateRow to create row in a related table with an invalid value as the $id.

Now, I want to delete this row, but I can't because the $id is invalid:

Image
"Invalid `rowId` param: UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can't start with a leading underscore"

I also deleted parent table to trigger a cascade deletion, but the row is still not deleted.

👍 Expected behavior

  • It should not be possible to create a row with an incorrect $id
  • It should be possible to delete a row with an incorrect $id

👎 Actual Behavior

  • It is possible to create a row with an incorrect $id
  • It is not be possible to delete a row with an incorrect $id

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

  • node-appwrite 18.0.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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature / relationshipsFixes and upgrades for database relationshipsproduct / databasesFixes and upgrades for the Appwrite Database.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions