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

Sync Server Fuzzer found inconsistency applying empty binary/string to mixed list #6201

Closed
sync-by-unito bot opened this issue Jan 16, 2023 · 0 comments · Fixed by #6202
Closed

Sync Server Fuzzer found inconsistency applying empty binary/string to mixed list #6201

sync-by-unito bot opened this issue Jan 16, 2023 · 0 comments · Fixed by #6202
Assignees

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Jan 16, 2023

The fuzzer captured this failure. I reproduced it to this minimal test case.

Apply these instructions:

AddTable { table: gr, tableType: Top-Level, pkName: _id, pkType: String, pkNullable: false }
AddColumn { table: gr, field: vg, type: Mixed, collection: List, isNullable: true, targetTable:  }
CreateObject { table: "gr", id: "{String: "cavhdqmgvna"}" }
ArrayInsert { (table="gr", ID="{String: "cavhdqmgvna"}", fullPath="vg.0"), payload: {Binary: Binary(string: , raw: [])}, priorSize: 0 }
Update { (table="gr", ID="{String: "cavhdqmgvna"}", fullPath="vg.0"), payload: {String: ""}, isDefault: false, priorSize: 1 }

And the result of the object will be:

{
"class_gr":[{"_id":"cavhdqmgvna","vg":[{"$binary": {"base64": "", "subType": "00"}}]}]
}

As you can see, setting a mixed list to just be a single element with an empty binary payload and then updating it to be an empty string winds up resulting in the list still just being an empty binary.

I updated the binaries we are using to the most recent master release for realm-core.

This reminds me of this ticket and I would bet its related in some way: https://jira.mongodb.org/browse/RCORE-802

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant