Closed
Bug 888821
Opened 11 years ago
Closed 11 years ago
B2G MMS: UA profile configuration based on MNC and MCC.
Categories
(Core :: DOM: Device Interfaces, defect, P2)
Tracking
()
People
(Reporter: leo.bugzilla.gaia, Assigned: johnhu)
References
Details
(Whiteboard: [u=commsapps-user c=messaging p=0][fixed-in-birch])
Attachments
(2 files, 5 obsolete files)
1.45 KB,
patch
|
Details | Diff | Splinter Review | |
88 bytes,
text/html
|
arthurcc
:
review+
|
Details |
1. Title: UA profile configuration based on MNC and MCC
2. Precondition: MMS feature enabled on FFOS device
3. Detailed Symptom (ENG.) : When we receive an MMS,there is an URL send to server which contains all the information about the MIME types supported.
In APN,we have set the maximum size for an MMS when sending based on the operator,even at the receiving side we need to have this configurations enabled based on the operator.
The implementation of the UA profile configuration based on MNC and MCC is discussed with Corey in Taiwan workweek
Updated•11 years ago
|
Assignee: nobody → gnarf37
Updated•11 years ago
|
Whiteboard: [u=commsapps-user c=messaging p=0]
Comment 2•11 years ago
|
||
Sounds like we can handle this kind of configuration on the Gaia end. Maybe apn.json? I guess.
No longer blocks: b2g-mms
Comment 3•11 years ago
|
||
So, the only thing that will be different about the UA profile per provider is the max size yeah?
Perhaps we should just have a list of profiles that are based on the max size we already setup in the apn.json?
profile-300k.xml
profile-500k.xml
profile-1024k.xml
etc?
Is it possible to have this be generated by the server?
uaprofile.xml?operatorDefinedLimit=307200
Flags: needinfo?(leo.bugzilla.gaia)
Updated•11 years ago
|
Flags: in-moztrap?
Hello Corey,
From MMS application point of view, the only difference in UA profile is the Maximum size. Your suggestion on server generating is interesting, however this is not the case. Based on the configuration the client should pick one of these profiles and place it part of the GET request.
Flags: needinfo?(leo.bugzilla.gaia)
Comment 5•11 years ago
|
||
Okay, since the UA profile is sent inside the gecko code, this is something for one of those engineers I think. We will need a list of the correct URLs. ctai, gene, is this for one of you?
Assignee: gnarf37 → nobody
Flags: needinfo?(gene.lian)
Flags: needinfo?(ctai)
Comment 6•11 years ago
|
||
Because UAProf is device dependent one, I don't suggest use a URLs in here. Those correct URL should be put in customized file. Per talk with Leo guys, my suggestion is below.
We will get the max size of MMS from apn.json. For example, we have wap.UAProf.url.300, wap.UAProf.url.500, wap.UAProf.url.600, wap.UAProf.url.default in b2g.js or user.js. In user.js, it will be a correct url defined by device maker. The Gecko will read the UAProf url by combine the max_size with UAProf. If the max size is 500, Gecko will get the preference "wap.UAProf.url.500". If this preference is not defined, we will use wap.UAProf.url.default.
Flags: needinfo?(gene.lian)
Flags: needinfo?(ctai)
Hi,
Please verify changes done for UAProfile configuration based on MNC&MCC and provide comments.
Thanks
Hi,
Please check the changes done for UAProfile configuration based on MNC&MCC and provide comments.
Thanks
Attachment #774444 -
Attachment is obsolete: true
Comment on attachment 774476 [details]
Patch for UAProfile based on MNC and MCC
Please ignore the attachments
Attachment #774476 -
Attachment is obsolete: true
Attachment #774476 -
Attachment is patch: false
Updated•11 years ago
|
Assignee: nobody → ctai
Component: Gaia::SMS → DOM: Device Interfaces
Product: Boot2Gecko → Core
Updated•11 years ago
|
Summary: [MMS] UA profile configuration based on MNC and MCC → B2G MMS: UA profile configuration based on the max size defined in MNC and MCC.
Comment 10•11 years ago
|
||
Updated•11 years ago
|
Attachment #776249 -
Flags: review?(vyang)
Comment 11•11 years ago
|
||
Comment on attachment 776249 [details] [diff] [review]
b2g18-Patch1.0
Review of attachment 776249 [details] [diff] [review]:
-----------------------------------------------------------------
The only thing we should do in this bug, is expose both "wap.UAProf.url" and "wap.UAProf.tagname" as new Settings entries. Please do not build "policy" into Gecko.
Attachment #776249 -
Flags: review?(vyang)
Updated•11 years ago
|
Summary: B2G MMS: UA profile configuration based on the max size defined in MNC and MCC. → B2G MMS: UA profile configuration based on MNC and MCC.
Comment 12•11 years ago
|
||
Attachment #776249 -
Attachment is obsolete: true
Updated•11 years ago
|
Attachment #776911 -
Flags: review?(vyang)
Comment 13•11 years ago
|
||
Per talk with Vicamo, Steve and LEO guys, we decide to do below method for this bug.
We only expose "wap.UAProf.url" and "wap.UAProf.tagname" as new Settings entries in Gecko part.
We will provide a field "UAProf" in apn.json for different MCC, MNC in Gaia part.
We will left empty by default. Device maker can override those values if necessary.
We need to provide a variable for the default value in Gaia part about the UAProf.url if the values is not presented.
Comment 14•11 years ago
|
||
Comment on attachment 776911 [details] [diff] [review]
Patch v1.0
Review of attachment 776911 [details] [diff] [review]:
-----------------------------------------------------------------
Please also rewrite the commit summary to something more accurate.
Attachment #776911 -
Flags: review?(vyang) → review+
Comment 15•11 years ago
|
||
Attachment #776911 -
Attachment is obsolete: true
Comment 16•11 years ago
|
||
Updated•11 years ago
|
Attachment #776935 -
Attachment description: Patch v1.1 → b2g18-Patch v1.1
Comment 17•11 years ago
|
||
Comment on attachment 776935 [details] [diff] [review]
b2g18-Patch v1.1
We don't need a b2g18-sepcificed patch.
Attachment #776935 -
Attachment is obsolete: true
Updated•11 years ago
|
Keywords: checkin-needed
Comment 18•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [u=commsapps-user c=messaging p=0] → [u=commsapps-user c=messaging p=0][leave open][fixed-in-birch]
Comment 19•11 years ago
|
||
Geko's part is done. Re-assign to Steve Chung. He will take care Gaia's part.
Updated•11 years ago
|
Assignee: ctai → schung
Assignee | ||
Updated•11 years ago
|
Assignee: schung → johu
Assignee | ||
Comment 20•11 years ago
|
||
We will use build customization mechanism for device maker to create its owned configuration. The mechanism is based on this page: https://wiki.mozilla.org/B2G/MarketCustomizations. It will be the second app using Runtime Customization which means it changes wap.UAProf.url when mcc/mnc is changed.
The customization file name will be "wapuaprof.json". The file structure is similar to browser, linked with mcc and mnc with zero padding, like:
{
"000000": {
"url": "http://example.url/file.xml"
},
"123001": {
"url": "http://example.url/file.xml"
}
}
If "000000" is used, that will be the default value. So, when we can't find the customized record based on mcc/mnc, we use this value as the default value. Otherwise, we use "undefined" as the default value.
After discussing with Chai-hung, the implementation will only support url. When tagname is needed to expose to device maker, we will open another bug to add it.
Assignee | ||
Comment 21•11 years ago
|
||
1. add wapuaprof.json file to application_data.js
2. add the code to handling WAP UA profile url settings in operator_variant.js
3. add apps/system/resources/wapuaprof.json to ignore list
The implementation is based on the statements of last comment.
Attachment #777021 -
Flags: review?(arthur.chen)
Assignee | ||
Comment 22•11 years ago
|
||
I will change the wiki page of https://wiki.mozilla.org/B2G/MarketCustomizations when this patch is r+ and before landing.
Comment 23•11 years ago
|
||
Comment 24•11 years ago
|
||
Comment on attachment 777021 [details]
patch for gaia part
Nice work, John! r=me.
Attachment #777021 -
Flags: review?(arthur.chen) → review+
Assignee | ||
Comment 25•11 years ago
|
||
merged to master:
https://github.com/mozilla-b2g/gaia/commit/4ec7c428f6a63a44f888ea6f6ade0385c89ae305
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
status-b2g18:
--- → affected
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-b2g-v1.1hd:
--- → affected
status-firefox23:
--- → wontfix
status-firefox24:
--- → wontfix
status-firefox25:
--- → fixed
Whiteboard: [u=commsapps-user c=messaging p=0][leave open][fixed-in-birch] → [u=commsapps-user c=messaging p=0][fixed-in-birch]
Comment 26•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/34cf7d19e76b
Leaving status-b2g18 set to affected until the Gaia patch in comment 25 is uplifted to v1-train.
Flags: needinfo?(jhford)
Comment 27•11 years ago
|
||
There is a merge conflict on v1-train in
apps/system/js/operator_variant/operator_variant.js
Flags: needinfo?(jhford)
Comment 28•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18_v1_1_0_hd/rev/34cf7d19e76b
John, can you please assist with resolving the v1-train merge conflict in comment 27?
Flags: needinfo?(johu)
Assignee | ||
Comment 29•11 years ago
|
||
Hi John Ford,
I had resolved the conflict of operator_variant.js. Please find the branch in my github:
https://github.com/huchengtw-moz/gaia/tree/system/Bug_888821-v1-train
Thanks for help...
John Hu
Flags: needinfo?(johu) → needinfo?(jhford)
Comment 31•11 years ago
|
||
v1.1.0hd: c376446da64aacb6907b26542a2684d54a0162eb
v1.1.0hd: 16db10014db8da6c25b673953264f358d205e206
You need to log in
before you can comment on or make changes to this bug.
Description
•