-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
If an embedded object with an array gets updated via an SDK, like this:
realmQuery.update({ ..., update: { foo: { bar: { bizz: [ 1, 2 ] } } } });
The object at bar will be replaced with a new embedded object with a new array, and the sync instructions will reflect that. However, there's nothing in the sync instructions to clear the object that was there previously. This leads to uploading corrupted changesets to the sync server with prior_sizes that look as though the embedded object was set to null and then re-created, even though there are no instructions to do that. If you select a CreatePolicy of CreatePolicy::UpdateModified, then the object bar will be diffed and the array values will get updated instead of inserted.
- is related to
-
RCORE-788 Bad Changeset w/incorrect prior size in client bootstrapping
- Closed