Closed Bug 630477 Opened 15 years ago Closed 11 years ago

Cannot update add-ons if the target filename contains multibyte characters (the update link in VersionCheck.php is invalid)

Categories

(addons.mozilla.org Graveyard :: API, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kohei, Unassigned)

Details

The author of the Kami-Copi add-on reported us that it couldn't be updated to the latest version (1.4) via Add-on Manager. The error was "Invalid file hash (possible download corruption) -261". Installation from the listing page seems no problem. https://addons.mozilla.org/en-US/firefox/addon/6216/ Here's the Version Check URL: https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=2&id={1D718B47-1056-4ca0-83F5-5BEB3256D7B2}&version=1.3&maxAppVersion=3.6.*&status=userEnabled&appID={ec8030f7-c20a-464f-9b0e-13a3a9e97384}&appVersion=3.6.13&appOS=WINNT&appABI=x86-msvc&locale=ja&currentAppVersion=3.6.13&updateType=97 This update link is invalid. http://releases.mozilla.org/pub/mozilla.org/addons/6216/?copi_add_on-1.4-fx-windows.xpi The actual filename is http://releases.mozilla.org/pub/mozilla.org/addons/6216/%E7%B4%99copi_add_on-1.4-fx-windows.xpi The Version Check API should not replace a multibyte character with a question mark.
Summary: Cannot update add-ons if the target filename contains multibyte characters → Cannot update add-ons if the target filename contains multibyte characters (the update link in VersionCheck.php is invalid)
Jeff: is this because the add-on was uploaded in the time when we allowed utf-8 in filenames? In other words, this is no longer happening to newly uploaded files, right?
(In reply to comment #1) > Jeff: is this because the add-on was uploaded in the time when we allowed utf-8 > in filenames? In other words, this is no longer happening to newly uploaded > files, right? Correct. I uploaded the file to preview and the name is https://addons.allizom.org/z/mobile/downloads/file/108899/copi_add_on-1.4-fx.xpi?src=devhub.
As an interim measure, I have asked the author of the Kami-Copi add-on to upload a new version with ascii-only filename. It should work well.
(In reply to comment #4) > As an interim measure, I have asked the author of the Kami-Copi add-on to > upload a new version with ascii-only filename. It should work well. Thanks. Any new uploads should work fine (We clean filenames now). It's just any files uploaded within the month or so this was live will be broken.
I see you've renamed the file to fix this problem. We've rewritten the versioncheck script since then - can you still reproduce this?
Thanks for filing this. Due to resource constraints we are closing bugs which we won't realistically be able to fix. If you have a patch that applies to this bug please reopen. For more info see http://micropipes.com/blog/2014/09/24/the-great-add-on-bug-triage/
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.