Closed Bug 1007870 Opened 11 years ago Closed 11 years ago

UnicodeDecodeError on Google translate redirect

Categories

(addons.mozilla.org Graveyard :: Localization, defect, P2)

x86
macOS
defect

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.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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 → ---
Actually it does redirect to Google translate but the content is not loaded because of an unescaped % character, I'll investigate next week.
Priority: -- → P2
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
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 → ---
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?
Plot twist - it works in chrome! :) It looks like Firefox is throwing a URIError in the console. Are we encoding the % correctly?
If it works in Chrome, isn't it a Firefox bug? :) Note that with STR the % is encoded by Google translate.
Target Milestone: 2014-06 → 2014-07
Depends on: 1027527
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)
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
(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)
Sadly, it won't be fixed in Firefox until 1027527 is fixed. But it should work fine with Chrome now…
Flags: needinfo?(david)
(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
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.