Closed Bug 1242439 Opened 9 years ago Closed 6 years ago

Sync engine messing around with record ids

Categories

(Firefox OS Graveyard :: Sync, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
2.6 S7 - 2/12

People

(Reporter: arcturus, Unassigned)

References

Details

When creating the adapter for the password manager I've come with an extrange result.

I was using record.id to identify the different records comming from the engine in the |update| function invoked in the adapter, and went through the following case:

- Update once and have all the passwords already synced.
- Modiy a password in firefox desktop.
- Sync firefox desktop.
- Sync firefoxos.

Expected:
- The updated record (with id XYZ) is modified in the list of records received in the update function.

Error:
- The updated record has a new id, and the id XYZ is being reused in a different record.

This is applied to passwords, but I guess that will be the same for other collections right?
Michiel is this familiar to you?
Flags: needinfo?(mbdejong)
Blocks: fxos-sync
Target Milestone: --- → 2.6 S7 - 2/12
Investigating
Could not replicate the problem... :( I saved one password to my test account, and was able to sync it to FxOS. When I updated the password in FxDesktop, synced FxDesktop, then synced FxOS, I saw the changed password come in to the 'List of modifications ---------->> ' console.log statement, as expected.

These are the changes I made while debugging on the arcturus/bug-1206010 branch, although that's probably not related:
https://github.com/arcturus/gaia/compare/bug-1206010...michielbdejong:passwords-adapter?expand=1
Flags: needinfo?(mbdejong)
Thanks Michiel, will give it a try tomorrow again to check if happens.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.