Closed
Bug 370614
Opened 17 years ago
Closed 17 years ago
New download URLs make saving extensions difficult
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jwkbugzilla, Assigned: sancus)
References
Details
Go to some extension page, right-click on "Install now" and choose "Save link target as". The suggested file name will be something like 12345.htm - it should be extension_name-version.xpi instead. At the very least it should be done with the Content-Disposition HTTP header.
Assignee | ||
Comment 1•17 years ago
|
||
Content-disposition has no effect on Save Link As, as far as I can tell, so that's pretty useless. However, we will have a "Download" button in place of the install button for Thunderbird add-ons that will use Content-Disposition attachment, and may add one for non-tb add-ons. The only way I can see to fix this is by tacking the filename onto the end of the url even if it doesn't mean anything to Remora.
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → sancus
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Comment 2•17 years ago
|
||
Yes, the content-disposition header might indeed help: http://us2.php.net/header (search for content-disposition). Doesn't this suggest the right filename for the downloaded file? However if you choose to implement this, make sure it doesn't break the regular installations. :)
Reporter | ||
Comment 3•17 years ago
|
||
(In reply to comment #1) > Content-disposition has no effect on Save Link As, as far as I can tell, so > that's pretty useless. Tested this, you are right. > The only way I can see to fix this is by tacking the filename onto the end of > the url even if it doesn't mean anything to Remora. Exactly.
Re. content disposition headers - Bug 299372
Assignee | ||
Comment 6•17 years ago
|
||
I added a trailing filename to all the download urls, which should deal with this.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 8•17 years ago
|
||
I'm still seeing this on http://preview.addons.mozilla.org/en-US/thunderbird/addon/878 (login required)
Comment 9•17 years ago
|
||
Looks like the sandbox install needs the filename appended as well.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 10•17 years ago
|
||
It has it appended, and works in the test data. Not really sure what's going on here on preview. Going to have to get the full data dump to debug this.
Comment 11•17 years ago
|
||
There is a problem with sanitizing the URLs as well, see bug #372302 which fixed +, but other chars, like ' are being left in. Ciao!
Comment 12•17 years ago
|
||
This doesn't seem to be reproducible anymore, does it ?
Reporter | ||
Comment 13•17 years ago
|
||
Yes, I think this can be marked fixed again.
Comment 14•17 years ago
|
||
So be it, thanks.
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•