Closed Bug 867227 Opened 12 years ago Closed 12 years ago

B2G MMS: Add expiry date into nsIDOMMozMmsMessage.

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23
blocking-b2g leo+
Tracking Status
firefox23 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- wontfix

People

(Reporter: ctai, Assigned: ctai)

References

Details

(Whiteboard: [INTERFACE_CHANGE])

Attachments

(2 files, 3 obsolete files)

No description provided.
Assignee: nobody → ctai
Attached patch Part 2/2: Patch v1.0 (obsolete) — Splinter Review
Attachment #743912 - Attachment description: Part 1/2: Patch v1.0 → Part 1/2: Interface v1.0
Attachment #743912 - Attachment is obsolete: true
Attachment #743914 - Flags: review?(vyang)
Attachment #743915 - Flags: review?(vyang)
Attachment #743915 - Flags: superreview?(mounir)
Attachment #743915 - Flags: review?(vyang)
Attachment #743915 - Flags: review+
Comment on attachment 743914 [details] [diff] [review] Part 2/2: Patch v1.0 Review of attachment 743914 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/mobilemessage/src/MmsMessage.cpp @@ +523,5 @@ > + NS_ENSURE_TRUE(obj, NS_ERROR_FAILURE); > + > + *aDate = OBJECT_TO_JSVAL(obj); > + return NS_OK; > +} nit: add an empty line after.
Attachment #743914 - Flags: review?(vyang) → review+
Attached patch Part 2/2: Patch v1.1 (obsolete) — Splinter Review
Add new line.
Attachment #743914 - Attachment is obsolete: true
Attachment #744157 - Attachment is obsolete: true
This one is correct one. Part 2/2: Patch v1.1 is wrong. (In reply to Chia-hung Tai [:ctai :ctai_mozilla :cht] from comment #6) > Created attachment 744158 [details] [diff] [review] > Part 2/2: Patch v1.2
Nominating for leo+ because of blocking 862262 which is nominated for leo+.
blocking-b2g: --- → leo?
Whiteboard: [NO_UPLIFIT], [INTERFACE_CHANGE]
Removed NO_UPLIFT, as no change required in commercial RIL. Thanks.
Whiteboard: [NO_UPLIFIT], [INTERFACE_CHANGE] → [INTERFACE_CHANGE]
Why did we decide to implement this? I can't understand the reasons by reading bug 862262.
Because the notification message shows the expiry date when the retrieval mode is manual in UX wireframe designed by Ayman(Telfonica guy responsible for Firefox OS MMS UX). We need this patch to meet this requirement.
(In reply to Mounir Lamouri (:mounir) from comment #10) > Why did we decide to implement this? I can't understand the reasons by > reading bug 862262. Messages on the server have an expiration date. For cost-conscious markets and customers, it appears we ship with auto-retrieve off, which means we need to indicate to the user how long they have to be able to download a given MMS message.
Attachment #743915 - Flags: superreview?(mounir) → superreview+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
We didn't see in bug 862262 whether or not this was a blocker. Peter, can you help us to understand? Don't let the lack of blocking status prevent you from requesting approval-b2g18 on the patch though (this will also get the fix into v1.1).
Flags: needinfo?(pdolanjski)
Blocks: 868218
bug 862262 has the comments from maria about why this is blocking+ (this blocks the UI impl).
blocking-b2g: leo? → leo+
Flags: needinfo?(pdolanjski)
Comment on attachment 744158 [details] [diff] [review] Part 2/2: Patch v1.2 Review of attachment 744158 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/mobilemessage/src/ril/MobileMessageDatabaseService.js @@ +669,5 @@ > "content": partContent > }); > } > } > + let expiryDate = aMessageRecord.timestamp + headers["x-mms-expiry"] * 1000; Please see below. @@ +681,5 @@ > aMessageRecord.read, > subject, > smil, > + attachments, > + expiryDate); This is wrong. .createDomMessageFromRecord() is also used for the sending MMS which doesn't need to have an "x-mms-expiry" in its header. MmsMessage::Create() will reject an invalid |aExpiryDate|. This stops us sending an MMS. E/GeckoConsole( 551): [JavaScript Error: "NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMobileMessageService.createMmsMessage]" {file: "jar:file:///system/b2g/omni.ja!/components/MobileMessageDatabaseService.js" line: 732}] I'm working on a patch for this. Will fire a bug later.
Attachment #744158 - Flags: feedback-
@Gene, I've been updating the SMS app to support using threadId instead of "phone number" for multi-recipient support. So far, I have not been able to successfully send a message with sendMMS—is that currently expected behaviour?
Rick, Bug 869807 - B2G MMS: fail to send MMS due to the wrong assignment for expiryDate should already fixed this problem.
(In reply to Rick Waldron from comment #20) > @Gene, I've been updating the SMS app to support using threadId instead of > "phone number" for multi-recipient support. So far, I have not been able to > successfully send a message with sendMMS—is that currently expected > behaviour? Hi Rick, as Chia-hung's mention, please make sure both Bug 869841 and Bug 869807 has been included in your Gecko build, which should be able to solve the sendMMS(...) error.
Not sure which bug this makes sense for: https://bugzilla.mozilla.org/show_bug.cgi?id=869841#c7
Please see https://bugzilla.mozilla.org/show_bug.cgi?id=869841#c8. It is a typo in Messaging AP.
Flags: in-moztrap-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: