Closed Bug 875619 Opened 11 years ago Closed 11 years ago

[MMS] Can't retrieve attachment sent from iPhone

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:leo+, b2g18 fixed)

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

People

(Reporter: pyang, Assigned: gnarf)

References

()

Details

Attachments

(1 file, 1 obsolete file)

iPhone attachment can't be retrieved and icons remain blank.

REPRODUCE STEPS:
1. Use iPhone to send an image attached MMS to Fxos device.
2. Open message app, switch to target message thread.

EXPECTED:
1. Attachment preview is shown correctly.

ACTUAL:
1. No attachment is shown, icon is blank.
Attached patch patch v1 (obsolete) — Splinter Review
Reason: iPhone doesn't include a filename for its attachments
Assignee: nobody → gnarf37
Status: NEW → ASSIGNED
Attachment #753602 - Flags: review?(schung)
Attachment #753602 - Flags: review?(felash)
Comment on attachment 753602 [details] [diff] [review]
patch v1

Review of attachment 753602 [details] [diff] [review]:
-----------------------------------------------------------------

::: apps/sms/test/unit/smil_test.js
@@ +108,5 @@
>        SMIL.parse(message, function(output) {
>          assert.equal(output[0].text, testText);
>          assert.equal(output[0].blob, testImageBlob);
> +        // in lieu of location, it uses id stripped of unsafe chars
> +        assert.equal(output[0].name, '23');

Why not having another test case like "attachment with id and content only"? Maybe it would be better that comment about which device will send mms like this kind of format.

@@ +175,5 @@
>        SMIL.parse(message, function(output) {
>          assert.equal(output[0].text, testText);
>          assert.equal(output[0].blob, testImageBlob);
> +        // uses id in lieu of location
> +        assert.equal(output[0].name, '2');

Same here: We can have another test case here too.
Attached patch patch v2Splinter Review
reworked tests
Attachment #753602 - Attachment is obsolete: true
Attachment #753602 - Flags: review?(schung)
Attachment #753602 - Flags: review?(felash)
Attachment #753608 - Flags: review?(schung)
blocking-b2g: --- → leo?
Whiteboard: [NO_UPLIFT]
+2 typo fixes: https://gist.github.com/gnarf37/55e98ae2afb0a44cb511 (bit rushed)
Comment on attachment 753608 [details] [diff] [review]
patch v2

Review of attachment 753608 [details] [diff] [review]:
-----------------------------------------------------------------

Since these typo are test only, r+ with these typo fixing. Thanks.

::: apps/sms/test/unit/smil_test.js
@@ +130,5 @@
> +      SMIL.parse(message, function(output) {
> +        assert.equal(output[0].text, testText);
> +        assert.equal(output[0].blob, testImageBlob);
> +        // uses the id
> +        assert.equal(output[0].name, '2');

output[0].name should be 23 here

@@ +190,5 @@
>            location: 'text1',
>            content: new Blob([testText], {type: 'text/plain'})
>          },{
>            id: '<2>',
> +          location: 'example.jpg'

Comma missed here.
Attachment #753608 - Flags: review?(schung) → review+
master: aa34feca04eb51e5ab98a38b8fce2f23b6492a5d
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
blocking-b2g: leo? → leo+
Whiteboard: [NO_UPLIFT] → [NO_UPLIFT][uplift-blocker]
Whiteboard: [NO_UPLIFT][uplift-blocker]
Depends on: 868123, 845173
v1-train: 85c558e
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Verified on v1-train, bug fixed
Status: RESOLVED → VERIFIED
Flags: in-moztrap?
Flags: in-moztrap? → in-moztrap+
QA Contact: amiller
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: