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)
addons.mozilla.org Graveyard
Developer Pages
Tracking
(Not tracked)
RESOLVED
WORKSFORME
6.2.5
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
Comment 1•14 years ago
|
||
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")
Comment 2•14 years ago
|
||
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
Comment 3•14 years ago
|
||
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.
| Assignee | ||
Comment 4•14 years ago
|
||
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.
Updated•14 years ago
|
Target Milestone: 6.2.2 → 6.2.3
Updated•14 years ago
|
Target Milestone: 6.2.3 → Q3 2011
| Assignee | ||
Comment 5•14 years ago
|
||
Krupa, can you upload test-kanji.webapp so I can reproduce? I'll be testing submission with manifest URL.
Updated•14 years ago
|
Target Milestone: Q3 2011 → 6.2.4
Updated•14 years ago
|
Target Milestone: 6.2.4 → 6.2.5
Updated•14 years ago
|
Target Milestone: 6.2.5 → 6.2.6
| Reporter | ||
Comment 6•14 years ago
|
||
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
Updated•10 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
•