Closed
Bug 828264
Opened 13 years ago
Closed 8 years ago
Calendar sync should fail if server stops sending data after N amount of time.
Categories
(Firefox OS Graveyard :: Gaia::Calendar, defect)
Firefox OS Graveyard
Gaia::Calendar
Tracking
(blocking-basecamp:-, tracking-b2g:+, b2g18+)
RESOLVED
WONTFIX
| Tracking | Status | |
|---|---|---|
| b2g18 | + | --- |
People
(Reporter: jlal, Unassigned)
References
Details
(Whiteboard: [priority][p= ])
We should use a progressive timeout system (as we receive data we increase the timeout by some amount of time). Currently if the server stops sending data and we never receive the "readyState === 4" in xhr we will not hide the pending indicator.
In this case we can sometimes partially complete the sync and show the user some events (as seen in my test on Chris Jones's calendar) but we should not mark the sync for the failing calendar as "successful".
| Reporter | ||
Updated•13 years ago
|
blocking-basecamp: --- → ?
Comment 1•13 years ago
|
||
Hmm. I wonder if there's potential for data loss or corruption if you end up with a partial sync. I've seen bugs before where a partial sync happens due to a network connection loss, but trying to sync again doesn't pull the right data. Might be worth investigating risk here.
Comment 2•13 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #1)
> Hmm. I wonder if there's potential for data loss or corruption if you end up
> with a partial sync. I've seen bugs before where a partial sync happens due
> to a network connection loss, but trying to sync again doesn't pull the
> right data. Might be worth investigating risk here.
Not on the calendar btw I've seen these bugs, I'm just noting this generally with applications I've tested in the past.
| Reporter | ||
Comment 3•13 years ago
|
||
Calendar app was designed with the idea of partial syncs in mind ( on successful XHR requests) so there is no possibility for data-loss (on the server or on the device).
The only serious issue is in the case where we successfully completely sync a calendar on a server then later it becomes unavailable. Unless the calendar was specifically deleted on the server we will be unable to complete the sync and the pending bar will show forever if the server hangs unresponsive (it should be ok as long as it returns an error of some kind).
Comment 4•13 years ago
|
||
We would take a patch for this
blocking-basecamp: ? → -
tracking-b2g18:
--- → +
Updated•12 years ago
|
blocking-b2g: --- → backlog
Updated•12 years ago
|
Whiteboard: [priority][p= ]
| Assignee | ||
Updated•11 years ago
|
blocking-b2g: backlog → ---
Comment 6•8 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•