Closed Bug 680559 Opened 14 years ago Closed 14 years ago

Unable to upload a webapp with kanji characters in its name

Categories

(addons.mozilla.org Graveyard :: Developer Pages, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: krupa.mozbugs, Assigned: kumar)

References

()

Details

steps to reproduce: 1. Load https://addons.allizom.org/en-US/developers/addon/submit/2 2. Upload a webapp with kanji characters expected behavior: upload is successful actual behavior: upload fails with "Webapp: JSON Parse Error". See https://addons.allizom.org/en-US/developers/upload/8c43b8f130da41d79d819b7193a7db82
krupa: Can you attach the webapp to the bug? I think the fix may be to wrap the package reading with codecs.open(file, mode="r", encoding="utf-8")
It's not worth testing the upload support - that's going away shortly (bug already filed). The web based retrieval is where it's at. (That said, this may still be a valid bug)
Assignee: mbasta → kumar.mcmillan
Priority: -- → P3
dchan: There's a better way in the validator. We have a detection module called unicodehelper that should clean it up. I'm interested to know whether AMO will handle more than 100 bytes, since the spec limits to 100 characters.
According to the json spec encoding can be in escaped Unicode otherwise it defaults to utf8. I'd need to take a look at the test-kanji.webapp file to know what's going on. We might also need to pay attention to the charset header in the http response when parsing manifest URLs.
Target Milestone: 6.2.2 → 6.2.3
Target Milestone: 6.2.3 → Q3 2011
Krupa, can you upload test-kanji.webapp so I can reproduce? I'll be testing submission with manifest URL.
Target Milestone: Q3 2011 → 6.2.4
Target Milestone: 6.2.4 → 6.2.5
Target Milestone: 6.2.5 → 6.2.6
Upload works with kanji characters in the manifest. Closing the bug.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Target Milestone: 6.2.6 → 6.2.5
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.