Closed Bug 1206054 Opened 9 years ago Closed 6 years ago

Contacts NGA: Race condition when saving cookie stores wrong value

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
FxOS-S9 (16Oct)

People

(Reporter: arcturus, Unassigned)

References

Details

(Whiteboard: [NG Gaia Contacts][only for NGA Contacts branch])

We have a race condition in nga version of contacts.

When saving cooking we get an invalid value in the cookie that is not parseable. Taking the app to a wrong state that stops working.

An example of the output saved is this:

{"version":6,"order":false,"viewHeight":510,"rowsPerPage":9,"fbMigrated":true,"fbScheduleDone":true,"defaultImage":true,"accessTokenMigrated":true,"fbCleaningInProgress":0}; preferences={"version":6,"order":false,"viewHeight":510,"rowsPerPage":9,"fbMigrated":true,"fbScheduleDone":true,"defaultImage":true,"accessTokenMigrated":true,"fbCleaningInProgress":0,"shouldEvict":false}


Note we have an extra "shouldEvict":false in the second version so probably:

https://github.com/mozilla-b2g/gaia/commit/e17fc1581b24b1e42fad6ecf6325fecfa9c9a8ed

sounds like a candidate.
Whiteboard: [only for NGA Contacts branch]
See Also: → 1202916
Whiteboard: [only for NGA Contacts branch] → [NG Gaia Contacts][only for NGA Contacts branch]
Target Milestone: --- → FxOS-S8 (02Oct)
Summary: Contacts NGA: Race condition when saving cookie stores wrong vale → Contacts NGA: Race condition when saving cookie stores wrong value
Target Milestone: FxOS-S8 (02Oct) → FxOS-S9 (16Oct)
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.