Addons manager logging says that download completed when it actually failed
Categories
(Toolkit :: Add-ons Manager, defect, P5)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | fixed |
People
(Reporter: mkaply, Assigned: reachcmphere, Mentored)
Details
(Keywords: good-first-bug)
Attachments
(1 file, 1 obsolete file)
When installing an addon, if you turn on extensions.logging.enabled, you see this when there is a network failure:
1611261400470 addons.xpi DEBUG Download started for https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi to file C:\Users\mkaply\AppData\Local\Temp\tmp-psm.xpi
1611261400470 addons.xpi DEBUG Download of https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi completed.
1611261400470 addons.xpi WARN Download of https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi failed: 2152398878
Policies.jsm: Download failed - ERROR_NETWORK_FAILURE - https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi Policies.jsm:2308
1611261400471 addons.xpi DEBUG downloadFailed: removing temp file for https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi
1611261400471 addons.xpi DEBUG removeTemporaryFile: https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi removing temp file C:\Users\mkaply\AppData\Local\Temp\tmp-psm.xpi
The message:
1611261400470 addons.xpi DEBUG Download of https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi completed.
is misleading. Completed implies success when the download actually failed here. We should eliminate this message or come up with some other way to say this:
The deleting of the tmp file at the end is a little confusing as well.
1611261400471 addons.xpi DEBUG removeTemporaryFile: https://addons.mozilla.org/firefox/downloads/file/3698097/deutsch_de_language_pack-84.0buildid20201221152838-fx.xpi removing temp file C:\Users\mkaply\AppData\Local\Temp\tmp-psm.xpi
Will there still be a temp file even though there was no download?
This was discovered while investigating bug 1684501
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Hi Shane Caraveo, I am new bie to the open source contribution. I wish to take up this issue... could you pls guide me?
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Hey chandhu, welcome! Please take a look at https://wiki.mozilla.org/WebExtensions/Contribution_Onramp to learn how to get set up for fixing this bug. :) Once your development environment is set up, Shane can provide more guidance.
Comment 3•5 years ago
|
||
Hi Chandhu, after you look through the onramp and get started there, needinfo me again if you have any questions, as well then I can give some guidance. Thanks!
Comment 4•5 years ago
|
||
Hello,
I am new to open source development and looking to improve my skills. Could I take on this project? I might need some guidance also.
thank you for your time,
Comment 5•5 years ago
|
||
Hi Phu, thanks for your interest! Chandu recently expressed interest in working on this bug; let's give them another week to submit an initial patch before we open up this bug to other contributors. :)
In the meantime, would you be interested in working on one of our other good-first-bugs? You can find other good-first-bugs for this component at https://mzl.la/2VXBaqe and we also have a number of good-first-bugs for the WebExtensions API at https://mzl.la/2yq1XA8.
To get started, check out our onboarding documentation at https://wiki.mozilla.org/WebExtensions/Contribution_Onramp.
Hello! I am an Outreachy applicant interested in fixing this bug. My dev environment is set up and I can successfully commit, this will be the second bug I'm working on. May I be assigned? I may need some guidance but I'm ready to go. Thanks!
Comment 7•4 years ago
|
||
Hi! Sorry for the delay. I've assigned the bug to you. You could start by looking into the code linked to in the initial post in this bug. It seems to me that that specific log entry would be better placed in downloadCompleted.
(In reply to Shane Caraveo (:mixedpuppy) from comment #7)
Hi! Sorry for the delay. I've assigned the bug to you. You could start by looking into the code linked to in the initial post in this bug. It seems to me that that specific log entry would be better placed in downloadCompleted.
Actually I just realized this is for toolkit, and I'm not sure I have the experience quite yet to work on this, so it might be best to unassign me for now. I appreciate your reply. Sorry about that!
Comment 9•4 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Comment 10•3 years ago
|
||
Hi Shane Caraveo, I am an Outreachy applicant interested in fixing this bug. I wish to take up this issue... could you pls guide me?
| Assignee | ||
Comment 11•9 months ago
|
||
Updated•9 months ago
|
| Assignee | ||
Comment 12•8 months ago
|
||
I have posted a patch. Should you be the reviewer or should someone else? Thank you in advance!
Comment 13•8 months ago
|
||
Thanks for looking into improving this XPIProvider debug log, I've just submitted an initial round of review comments (and redirected the review quested to myself).
| Assignee | ||
Comment 14•8 months ago
|
||
Updated•8 months ago
|
Updated•8 months ago
|
| Assignee | ||
Comment 15•8 months ago
|
||
Hi Luca, I have submitted a revision. Please let me know if this needs further attention or if it is ready to land. Thank you in advance!
Comment 16•8 months ago
|
||
(In reply to chase.philpot from comment #15)
Hi Luca, I have submitted a revision. Please let me know if this needs further attention or if it is ready to land. Thank you in advance!
The last version of the patch did look good to go, I just signed it off and queued to autoland.
Thanks for taking care of fixing it!
Comment 17•8 months ago
|
||
Comment 18•8 months ago
|
||
| bugherder | ||
Updated•7 months ago
|
Description
•