Closed Bug 840061 Opened 11 years ago Closed 11 years ago

[MMS][User Story] Operator size limit definition

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:leo+, b2g18 fixed)

RESOLVED FIXED
blocking-b2g leo+
Tracking Status
b2g18 --- fixed

People

(Reporter: pdol, Assigned: steveck)

References

Details

(Keywords: feature, Whiteboard: [LOE:M] QARegressExclude)

Attachments

(2 files)

UCID: Messages-048

User Story:
As an operator, I can set the maximum MMS message size that can be sent or received on the device (in kilobytes) in order to ensure that messages composed and/or received from the device adhere to network policy.
Depends on: 809832
Depends on: 842484
Assignee: nobody → schung
This should be configured as a pref.

page 5 of the spec shows what happens when a user tries to attach a file larger than the set limit:
https://www.dropbox.com/s/zc3hhd1mxi16p4w/MMS.pdf
This bug is to provide the customization capability for bug 840038
Depends on: 840038
Whiteboard: [LOE:S]
(In reply to Peter Dolanjski [:pdol] from comment #0)
> UCID: Messages-048
> 
> User Story:
> As an operator, I can set the maximum MMS message size that can be sent or
> received on the device (in kilobytes) in order to ensure that messages
> composed and/or received from the device adhere to network policy.

maximum MMS message size = complete message (all headers + attachments)? or just the size of the attachments?
Flags: needinfo?(ffos-product)
Whiteboard: [LOE:S] → [LOE:M]
includes all : content, attachment and headers
Flags: needinfo?(ffos-product)
Peter, so, for this case, we don't really need to provide an UI to configure this option, right? It looks like if we can provide a way to configure this one during build time, it's also ok? Thanks.
Flags: needinfo?(pdolanjski)
Whiteboard: [LOE:M] → [LOE:M] [3/11~3/15]
Kev, could you check with the partner on this being set as a build time configuration?
Flags: needinfo?(pdolanjski) → needinfo?(kev)
This is an operator-set parameter which does not have any requirement to expose it to the user (and it should not be exposed to the user). The network also enforces this requirement, and the main reason for having this parameter in place is to ensure the user is informed that their message size is too large prior to attempting to send the message and getting a failed send or other network error.
Flags: needinfo?(kev)
Blocks: mms-p1
Per partner and release-driver discussions, marking blocking- until all MMS functionality in bug 849867 is complete, allowing it all to be uplifted at once to avoid SMS bustage.
blocking-b2g: leo+ → -
Whiteboard: [LOE:M] [3/11~3/15] → [LOE:M] [target 3/22]
Hi Kev, is this limitation also necessary for message receiving? Because conformance says we should not block message receiving depends on message size. If we do block the over-sized message, do we need to ignore the message and remove from the database, or just stop the attachments downloading(and maybe send a notification to user) ?
Flags: needinfo?(kev)
Flags: in-moztrap?
Hi Vicamo, I added 'dom.mms.operatorSizeLimitation' key in settings DB for customization. Please inform me if the key naming doesn't follow the convention, thanks.
Attachment #728077 - Flags: review?(fbsc)
Attachment #728077 - Flags: feedback?(vyang)
(In reply to Steve Chung from comment #11)
> Created attachment 728077 [details]
> Patch for operator customizable MMS message size limitation
> 
> Hi Vicamo, I added 'dom.mms.operatorSizeLimitation' key in settings DB for
> customization. Please inform me if the key naming doesn't follow the
> convention, thanks.

Maybe 'dom.mms.maxMessageSize'? Seems more clearly reflect that it's about message size, not length of operator names, or number of operators, etc. And, will there be different limitations for incoming and outgoing messages? For example, you might want to limit outgoing messages only, and accept all incoming messages of all sizes.
Comment on attachment 728077 [details]
Patch for operator customizable MMS message size limitation

Have comments in Github instead. It seems a return statement is missing. Besides, what's the expected behaviour if such size limitation is unset. Shouldn't it mean NO LIMIT instead?
Attachment #728077 - Flags: feedback?(vyang)
Hi Kev, per Vicamo's comment at #13, should we define a default MMS message size if operator doesn't customize the limitation, or just set no limitation for both sending/receiving ?
leo+ as this is a part of MMS. No_UPLIFT for now before the whole MMS is completed
blocking-b2g: - → leo+
Whiteboard: [LOE:M] [target 3/22] → [LOE:M] [target 3/22] NO_UPLIFT
Whiteboard: [LOE:M] [target 3/22] NO_UPLIFT → [LOE:M] [NO_UPLIFT]
Blocks: 792327
moztrap #6675
Flags: in-moztrap? → in-moztrap+
No limitation gets my vote. If there's a limit, it's usually enforced network side anyways. Something to flag in customization docs, too.
Flags: needinfo?(kev)
Whiteboard: [LOE:M] [NO_UPLIFT] → [LOE:M]
Steve, does this need a new patch? If not, should it get review from Julien instead of Borja (who's out this week)?
Comment on attachment 728077 [details]
Patch for operator customizable MMS message size limitation

Oh yes, I will change the review to Julien, but I need some modification about removing the message size upper bound by default base on Kev's comment. I'll remove the review request first, Thanks.
Attachment #728077 - Flags: review?(fbsc)
Comment on attachment 728077 [details]
Patch for operator customizable MMS message size limitation

Hi Borja, I change the size limitation to unlimited by default and add some test cases. Please contact me if you got any question about the patch, thanks.
Attachment #728077 - Flags: review?(fbsc)
This customization param is detailed in the following link:
https://wiki.mozilla.org/B2G/MarketCustomizations#Customization_Overview
Attachment #728077 - Flags: review?(fbsc) → review+
Blocks: 840035
This feature is mms related but no UI involved and won't affect sms functionality. I landed this patch in master: 87ce52cdce7c18d40b50f5785bf5016458e99b9a
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reopen this issue for reducing the conflict and refinement
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #746704 - Flags: review?(fbsc)
Just a process comment in the future - I'd suggest filing followups for patches in separate bugs and avoid reopening the same bug for multiple patches.
Comment on attachment 746704 [details]
Patch for code refinement

R+. Please take a look to Corey's questions about the API. Thanks!
Attachment #746704 - Flags: review?(fbsc) → review+
Thanks for the reminder, Jason. I'll open another follow up bug next time
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Uplifted 87ce52cdce7c18d40b50f5785bf5016458e99b9a to:
v1-train: d24ba14b56cd391da071db227fd2153120604b9c
Blocks: 886757
Whiteboard: [LOE:M] → [LOE:M] QARegressExclude
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: