Closed
Bug 970275
Opened 10 years ago
Closed 10 years ago
[Download Manager] A strange white header is shown when you open an image file
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(blocking-b2g:1.4+, b2g-v1.4 fixed)
Tracking | Status | |
---|---|---|
b2g-v1.4 | --- | fixed |
People
(Reporter: rafael.marquez, Assigned: pdahiya)
References
Details
Attachments
(4 files)
*Procedure 1. Download a .jpg file 2. Open download list 3. Tap on the .jpg file downloaded *Expected Result The image file is opened susccessfully *Actual Result A strange white header is shown when you open an image file. See the attached file
Reporter | ||
Updated•10 years ago
|
blocking-b2g: --- → 1.4?
Whiteboard: [systemsfe]
Updated•10 years ago
|
Blocks: fxos-download-mgr
Comment 1•10 years ago
|
||
This seems like a gallery problem. Hema can you take a look?
Flags: needinfo?(hkoka)
Updated•10 years ago
|
Component: Gaia::System → Gaia::Gallery
Updated•10 years ago
|
Whiteboard: [systemsfe]
Updated•10 years ago
|
Assignee: nobody → pdahiya
Updated•10 years ago
|
Flags: needinfo?(hkoka)
Updated•10 years ago
|
Target Milestone: --- → 1.4 S3 (14mar)
Assignee | ||
Comment 2•10 years ago
|
||
(In reply to rafael.marquez from comment #0) > Created attachment 8373300 [details] > cabecera.png > > *Procedure > 1. Download a .jpg file Please provide details steps, was it a download from bluetooth, email, sms > 2. Open download list Is it downloaded files in notifications, please elaborate with steps on how to see download list? > 3. Tap on the .jpg file downloaded > *Expected Result > The image file is opened susccessfully > > *Actual Result > A strange white header is shown when you open an image file. See the > attached file Also, if possible, please attach the .jpg file used while testing this issue. Thanks
Flags: needinfo?(rafael.marquez)
Assignee | ||
Comment 3•10 years ago
|
||
Attaching screen shot of an image downloaded and viewed via SMS app. Is this expected behavior? It will help if you can provide requested info in comment #2, that will help to replicate issue. Thanks
Reporter | ||
Comment 4•10 years ago
|
||
Flags: needinfo?(rafael.marquez)
Reporter | ||
Comment 5•10 years ago
|
||
I have attached the file used(Crazy_Horse.jpg), but the bug is reproduced with any image
Reporter | ||
Comment 6•10 years ago
|
||
This test is a download manager failure. To reproduce: 1. Open browser app 2. Open the web pag https://owd.tid.es/dm/ 3. Tap on the file Crazy_Horse.jpg to download it. 4. Open settings app 5. Open download list 6. Tap on the downloaded file 7. Tap on Open The file is opened with the white header.
Comment 7•10 years ago
|
||
The gallery app wants to display the filename of the image in the white header bar, and it expects that name to be sent in the activity with the name 'filename'. The download manager is sending a url instead, which I don't believe has ever been part of the open activity protocol before. It is easy enough to change Gallery to accept both filename or url as the image title, though. I'm pretty sure that bluetooth, sms, and email all send a filename. Punam is checking this. Rafael: you might want to check what the music and video apps do when asked to open a downloaded movie or video. They might also want a filename property instead of a url property. If we can standardize on just one, that would be good. Or consider sending both in your activity requests to be maximally robust.
Flags: needinfo?(rafael.marquez)
Flags: needinfo?(pdahiya)
Comment 8•10 years ago
|
||
Punam's investigation shows that download manager is actually sending a filename in the url property of the activity request. Since you're not sending the actual URL that was downloaded, you shouldn't call the property 'url'. I'd say that the bug is in the download manager, and you should just fix it there. Rafael: is there any reason that you can't just change 'url' to 'filename' in download manager? Changing the component back to Gaia:System. I think the burden is on the download manager to be compatible with the existing activities that the media apps support. We shouldn't be modifying the media apps to add support for non-standard properties in the activity request.
Component: Gaia::Gallery → Gaia::System
Assignee | ||
Comment 9•10 years ago
|
||
Hi Rafael I have attached a proposed fix to bug 970275. Please review. Thanks!
Attachment #8382445 -
Flags: review?(rafael.marquez)
Assignee | ||
Comment 10•10 years ago
|
||
(In reply to David Flanagan [:djf] from comment #7) > The gallery app wants to display the filename of the image in the white > header bar, and it expects that name to be sent in the activity with the > name 'filename'. The download manager is sending a url instead, which I > don't believe has ever been part of the open activity protocol before. It > is easy enough to change Gallery to accept both filename or url as the image > title, though. > > I'm pretty sure that bluetooth, sms, and email all send a filename. Punam is > checking this. I checked the above three flows, here are my findings: SMS: https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/js/attachment.js#L236 We are setting the filename property in SMS Bluetooth: https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/bluetooth_transfer.js#L538 We are setting the filename property in Bluetooth Email: https://github.com/mozilla-b2g/gaia/blob/master/apps/email/js/cards/message_reader.js#L612 We are not setting the filename in Email. In Email on opening the attached image, similar blank white header is observerd. James, can you pl. confirm if blank header is desired when opening an image attachment in email or should this be fixed by passing filename property to open activity. Please confirm. Thanks > > Rafael: you might want to check what the music and video apps do when asked > to open a downloaded movie or video. They might also want a filename > property instead of a url property. If we can standardize on just one, that > would be good. Or consider sending both in your activity requests to be > maximally robust.
Flags: needinfo?(jrburke)
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(pdahiya)
Comment 11•10 years ago
|
||
Comment on attachment 8382445 [details] [review] Patch with fix for Bug970275 Rafael is a QA, but not a code reviewer. Cristian is the person who could probably help review this.
Attachment #8382445 -
Flags: review?(rafael.marquez) → review?(crdlc)
Reporter | ||
Comment 12•10 years ago
|
||
Thanks Jason. I work in QA and can not review the code. I have reviewed the performance for video and music applications. If you open an audio or video downloaded, the name is displayed in the header.
Flags: needinfo?(rafael.marquez)
Comment 13•10 years ago
|
||
Comment on attachment 8382445 [details] [review] Patch with fix for Bug970275 Hi, thanks a lot for the patch, I've just added some comments on github. Please answer/address them and ask me for a new review again, thx
Attachment #8382445 -
Flags: review?(crdlc)
Assignee | ||
Comment 14•10 years ago
|
||
Comment on attachment 8382445 [details] [review] Patch with fix for Bug970275 Updated the PR with review feedback. Please review. Thanks
Attachment #8382445 -
Flags: review?(crdlc)
Comment 15•10 years ago
|
||
Comment on attachment 8382445 [details] [review] Patch with fix for Bug970275 Good job! Thx
Attachment #8382445 -
Flags: review?(crdlc) → review+
Updated•10 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 16•10 years ago
|
||
Thanks Cristian for the review. Fix landed on master https://github.com/mozilla-b2g/gaia/commit/9422aca1931ba6c68784f9e80bb1b6a7fcfd92e3
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
blocking-b2g: 1.4? → 1.4+
Comment 17•10 years ago
|
||
(In reply to Punam Dahiya from comment #10) > Email: > https://github.com/mozilla-b2g/gaia/blob/master/apps/email/js/cards/ > message_reader.js#L612 > > We are not setting the filename in Email. In Email on opening the attached > image, similar blank white header is observerd. James, can you pl. confirm > if blank header is desired when opening an image attachment in email or > should this be fixed by passing filename property to open activity. Please > confirm. Thanks Looks like email should send the filename in the activity call, feel free to open an email-specific bug about that.
Flags: needinfo?(jrburke)
Assignee | ||
Comment 18•10 years ago
|
||
Created bug 978329 for fixing white header inside email
Updated•10 years ago
|
status-b2g-v1.4:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•