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)
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.
| Reporter | ||
Comment 1•13 years ago
|
||
Yurenju - Can you take a look at this?
Flags: needinfo?(yurenju.mozilla)
| Assignee | ||
Comment 2•13 years ago
|
||
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)
| Assignee | ||
Comment 3•13 years ago
|
||
please reference bug 817044 comment 35.
Comment 4•13 years ago
|
||
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 ?
| Assignee | ||
Comment 5•13 years ago
|
||
Oh I trimed that in my script, Thank you Julien, it's clearer for me :D
| Assignee | ||
Comment 6•13 years ago
|
||
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.
| Assignee | ||
Comment 7•13 years ago
|
||
Fixed it on gaia-preload-app and I will make new version for telefonica repository on bug 864617.
Assignee: nobody → yurenju.mozilla
| Reporter | ||
Updated•13 years ago
|
Component: Gaia::Homescreen → Gaia
| Assignee | ||
Updated•13 years ago
|
Whiteboard: [customization]
| Assignee | ||
Comment 8•13 years ago
|
||
Fixed on bug 864617
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(kward)
You need to log in
before you can comment on or make changes to this bug.
Description
•