Closed
Bug 1007870
Opened 11 years ago
Closed 11 years ago
UnicodeDecodeError on Google translate redirect
Categories
(addons.mozilla.org Graveyard :: Localization, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
2014-07
People
(Reporter: davidbgk, Assigned: davidbgk)
References
Details
See http://sentry.mktmon.services.phx1.mozilla.com/mkt/addonsmozillaorg/group/4720/
When you try to reach the Google translate page for a comment with special chars, it raises a UnicodeDecodeError.
You have to turn the `reviews-translate` flag to 1 in order to reproduce.
| Assignee | ||
Comment 1•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 2•11 years ago
|
||
https://addons.mozilla.org/de/firefox/addon/video-downloadhelper/reviews/540531/translate/de loads a blank page for me. So, reopening as per magopian's request on IRC.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 3•11 years ago
|
||
Actually it does redirect to Google translate but the content is not loaded because of an unescaped % character, I'll investigate next week.
Updated•11 years ago
|
Priority: -- → P2
| Assignee | ||
Comment 4•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Comment 5•11 years ago
|
||
It redirects to google translate but the content is still empty.
Verified in addons-dev.allizom.org on FF29 (Win 7)
link: https://addons-dev.allizom.org/de/firefox/addon/video-downloadhelper/reviews/540531/translate/de
Please see this screencast: http://screencast.com/t/Prt6kDFWh
Reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 6•11 years ago
|
||
There looks to be an issue with Google translate (not) handling the percent (%) character, STR:
1. Go to https://translate.google.com/
2. Type "3%" in the left textarea
3. Copy the transformed URL (https://translate.google.com/#auto/de/3%25)
4. Paste that URL in another tab
5. The field is not filled with the content
I don't know exactly what is the right thing to do here, we can remove the % char completely but it'll look weird. Or converting it to its textual equivalent but it'll involve translations. Thoughts?
Comment 7•11 years ago
|
||
Plot twist - it works in chrome! :)
It looks like Firefox is throwing a URIError in the console. Are we encoding the % correctly?
| Assignee | ||
Comment 8•11 years ago
|
||
If it works in Chrome, isn't it a Firefox bug? :)
Note that with STR the % is encoded by Google translate.
Updated•11 years ago
|
Target Milestone: 2014-06 → 2014-07
| Assignee | ||
Comment 9•11 years ago
|
||
PR: https://github.com/mozilla/olympia/pull/124 (note that it still doesn't work with Firefox, I filled https://bugzilla.mozilla.org/show_bug.cgi?id=1027527 about that)
| Assignee | ||
Comment 10•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Comment 11•11 years ago
|
||
(In reply to David Larlet [:davidbgk] from comment #10)
> https://github.com/mozilla/olympia/commit/
> 72579b1c2fd416ac135d676d9dcef424242b6d7e
Should this fix the issue on firefox (the content beeing still empty.)? I am still able to reproduce it in addons-dev.allizom.org in FF30 but not in chrome (Win7)
Flags: needinfo?(david)
| Assignee | ||
Comment 12•11 years ago
|
||
Sadly, it won't be fixed in Firefox until 1027527 is fixed. But it should work fine with Chrome now…
Flags: needinfo?(david)
Comment 13•11 years ago
|
||
(In reply to David Larlet [:davidbgk] from comment #12)
> Sadly, it won't be fixed in Firefox until 1027527 is fixed. But it should
> work fine with Chrome now…
Thanks David!
It works in chrome: http://screencast.com/t/nYZGeUslQE
I will close this bug and will continue to track the firefox issue in Bug 1027527.
Status: RESOLVED → VERIFIED
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
•