Closed Bug 860288 Opened 13 years ago Closed 13 years ago

The partner customization packaged apps in https://github.com/telefonicaid/firefoxos-gaia-spain and https://github.com/telefonicaid/firefoxos-gaia-latam are not specifying etag headers correctly

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jsmith, Assigned: yurenju)

Details

(Whiteboard: [customization])

The etag headers specified for any packaged app in https://github.com/telefonicaid/firefoxos-gaia-latam and https://github.com/telefonicaid/firefoxos-gaia-spain does not contain the proper syntax of having a \" at the beginning and end of every etag, so right now, none of the etags will work. We need to fix this in order to prevent users from getting a massive wave of app updates upon starting to use their phone.
Yurenju - Can you take a look at this?
Flags: needinfo?(yurenju.mozilla)
Hi Jason, for metadata without etag, I knew this problem and asked Karen providing urls for app update and Karen said those apps will not upgrade via marketplace. needinfo karen for more detail. for metadata with etag but incorrectly, would you give a example for that?
Flags: needinfo?(yurenju.mozilla) → needinfo?(kward)
Yuren, if the actual ETag value has quotes, then the quotes must be in the value defined in the metadata json file. For example, for the youtube application, I take the manifest URL https://marketplace.firefox.com/app/9a46c4e6-0f8b-40cb-a770-11ea1b7fda20/manifest.webapp (defined in metadata.json) : $ curl -I https://marketplace.firefox.com/app/9a46c4e6-0f8b-40cb-a770-11ea1b7fda20/manifest.webapp HTTP/1.1 200 OK Server: gunicorn/0.15.0 Vary: X-Requested-With, Accept-Language, Cookie, X-Mobile, User-Agent X-Backend-Server: web6.addons.phx1.mozilla.com Content-Type: application/x-web-app-manifest+json Strict-Transport-Security: max-age=2592000 Date: Thu, 11 Apr 2013 06:55:53 GMT Transfer-Encoding: chunked ETag: "c0216f1ee14450d5af4ae5c90e25bfee" Via: Moz-pp-zlb08 Connection: Keep-Alive Set-Cookie: lang="en-US\054"; Path=/ Set-Cookie: region=us; Path=/ You can see the ETag header actually has quotes. This means that these quotes must be in the value defined in metadata.json. Currently it is "c0216f1ee14450d5af4ae5c90e25bfee" whereas it should be "\"c0216f1ee14450d5af4ae5c90e25bfee\"": the quotes are really part of the value ! Is it clearer ?
Oh I trimed that in my script, Thank you Julien, it's clearer for me :D
I opened a bug for that in my github project. https://github.com/yurenju/gaia-preload-app/issues/3 but we still need to update metadata in telefonicaid repositories.
Fixed it on gaia-preload-app and I will make new version for telefonica repository on bug 864617.
Assignee: nobody → yurenju.mozilla
Component: Gaia::Homescreen → Gaia
Whiteboard: [customization]
Fixed on bug 864617
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Flags: needinfo?(kward)
You need to log in before you can comment on or make changes to this bug.