Closed Bug 830661 Opened 11 years ago Closed 11 years ago

Trying to download a 3rd party hosted app preloading appcache update gets stuck at 0.00 bytes downloading forever

Categories

(Core Graveyard :: DOM: Apps, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:tef+, b2g18 fixed)

RESOLVED WORKSFORME
blocking-b2g tef+
Tracking Status
b2g18 --- fixed

People

(Reporter: jsmith, Assigned: julienw)

References

Details

(Keywords: regression, Whiteboard: [triage:1/16])

Attachments

(2 obsolete files)

Build: B2G 18 1/14/2013
Device: Unagi

Steps:

1. Get the app update notification for maps and marketplace
2. Start downloading the update over a good network connection

Expected:

We should be able to update each app with no errors.

Actual:

The downloading updates phase gets stuck at 0.00 bytes forever. The update never appears to finish.
blocking-b2g: --- → tef?
tracking-b2g18: --- → ?
Keywords: regression
Assignee: nobody → fabrice
blocking-b2g: tef? → tef+
Apparently I'm seeing this pretty consistently with any type of app, even on good network connections. Generalizing the bug.
Summary: Cannot download a 3rd party app update for the maps app & marketplace app → Trying to download a 3rd party app update gets stuck at 0.00 bytes downloading forever
Attached file Test Case v1.0 (obsolete) —
Attached file Test Case v1.1 (obsolete) —
I've been testing with my apps at http://people.mozilla.org/~fdesre/updates/ and can't reproduce the issue.

We'll need to sit down and test your site with my instrumented build.
I got a "0.00 bytes downloaded" never ending while force updating a hosted+appcache app (slithering):

I/Gecko   ( 2301): -*-*- Webapps.jsm : startDownload for http://snake-app.github.com/snake.webapp
I/Gecko   ( 2301): -*-*- Webapps.jsm : appcache found
I/Gecko   ( 2301): -*-*- Webapps.jsm : Creating AppcacheObserver for http://snake-app.github.com - updating
E/GeckoConsole( 2301): Offline cache doesn't need to update, URL=http://snake-app.github.com/snake.appcache
I/Gecko   ( 2301): -*-*- Webapps.jsm : Offline cache state change for http://snake-app.github.com : 3
I/Gecko   ( 2301): -*-*- Webapps.jsm : Offlinecache setStatus to installed for http://snake-app.github.com

state 3 is "STATE_NOUPDATE", which is why we set status to installed.

I'll dig into why gaia doesn't stop at this point.
I'll retest the packaged app issue - maybe I screwed that one up.

Sounds like though you hit the issue I'm talking about though with the appcache case in comment 6.
Summary: Trying to download a 3rd party app update gets stuck at 0.00 bytes downloading forever → Trying to download a 3rd party hosted app preloading appcache update gets stuck at 0.00 bytes downloading forever
Attachment #702569 - Attachment is obsolete: true
Attachment #702570 - Attachment is obsolete: true
Btw - this reproduces easily when trying to force update marketplace from an app not preloading appcache to one that does preload the appcache.
tracking-b2g18: ? → ---
Whiteboard: [triage:1/16]
Julien, Fabrice has a lot of bugs.  Can you help with this one?
Assignee: fabrice → felash
Yes but not before monday now.
I added the various existing patches about appcache (esp the patch from bug 829763 because otherwise I can't get update notifications) and I can't seem to reproduce it with my own hosted+appcache app.

What I don't understand is how could we have a download available (and thus an update) if the appcache does not change. I verified that if I update only the webapp manifest and not the appcache manifest, I don't get a download available event (which might be wrong (?)).

I guess I need more precise STR here.
Keywords: qawanted
This might be because of ETag as Slithering doesn't send ETag, right ? But then with bug 829934 that landed this is not a problem anymore too.
I'll retest.
QA Contact: jsmith
Can't reproduce on 1/21 build with a small appcache update test (a few KB change) and large appcache update test (a few MB change). Don't know the exact patch that fixed this, but something fixed this bug.
Status: NEW → RESOLVED
Closed: 11 years ago
Keywords: qawanted
Resolution: --- → WORKSFORME
No longer blocks: b2g-app-updates
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: