Closed Bug 869841 Opened 7 years ago Closed 7 years ago

B2G MMS: Gaia cannot get request returned after calling .sendMMS(...).

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set

Tracking

()

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

People

(Reporter: airpingu, Assigned: airpingu)

References

Details

(Whiteboard: [fixed-in-birch])

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #810091 +++

Please see bug 810091, comment #34.

We'll encounter an internal error when sending an MMS. This bug will stop Gaia getting the request returned after calling .sendMMS(). We must fix this ASAP. Nominating for leo+.
Attached patch PatchSplinter Review
Attachment #746876 - Flags: review?(vyang)
Attachment #746876 - Flags: feedback?(ctai)
Whiteboard: [NO_UPLIFIT]
Attachment #746876 - Flags: review?(vyang) → review+
https://hg.mozilla.org/projects/birch/rev/7243109bed0a
Whiteboard: [NO_UPLIFIT] → [fixed-in-birch] [NO_UPLIFIT]
https://hg.mozilla.org/mozilla-central/rev/7243109bed0a
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-birch] [NO_UPLIFIT] → [fixed-in-birch] [NO_UPLIFT]
Target Milestone: --- → mozilla23
Attachment #746876 - Flags: feedback?(ctai) → feedback+
Adding to leo+ per Description and blocking bug b2g-mms
blocking-b2g: leo? → leo+
Could you please check the NO_UPLIFT flag?
Thanks.
Flags: needinfo?(anshulj)
Whiteboard: [fixed-in-birch] [NO_UPLIFT] → [fixed-in-birch]
I'm seeing this error:

NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMMozMobileMessageManager.sendMMS]

(Plus other delivery related errors)

Repro requires a bit of setup and all of the SMIL doc generation code, so i put it in a gist:

https://gist.github.com/rwldrn/b2aaf04f07c1990e8037 

I'm not even sure I'm sending the right information to the sendMMS, as I can't find any information about what is required in the params object.
(In reply to Rick Waldron from comment #7)
> I'm seeing this error:
> 
> NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff
> (NS_ERROR_UNEXPECTED) [nsIDOMMozMobileMessageManager.sendMMS]
> 
> (Plus other delivery related errors)
> 
> Repro requires a bit of setup and all of the SMIL doc generation code, so i
> put it in a gist:
> 
> https://gist.github.com/rwldrn/b2aaf04f07c1990e8037 
> 
> I'm not even sure I'm sending the right information to the sendMMS, as I
> can't find any information about what is required in the params object.

var mms = {
  sender: '+18572044340',
  recievers: ['+18575409264'],
  smil: message.smil,
  attachments: message.attachments,
  timestamp: Date.now()
};

Oops... I guess you had a typo here. Please try to do s/recievers/receivers/. Also, I don't think you need |timestamp| here. The platform will prepare that for you. In summary, what you only need is the following 4 attributes:

dictionary MmsParameters
{
  jsval      receivers; // DOMString[]
  DOMString? subject;
  DOMString? smil;
  jsval      attachments; // MmsAttachment[]
};

I didn't run your codes but I believe the above-mentioned is exactly the right cause. ;)
Flags: in-moztrap-
You need to log in before you can comment on or make changes to this bug.