Closed Bug 771586 Opened 13 years ago Closed 13 years ago

Previewing a translation results in error page

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect, P1)

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: goofy.bugzilla, Assigned: groovecoder)

References

()

Details

(Whiteboard: c=wiki u=l10n s=2012-07-18 p=1)

Steps to reproduce 1. Go to this page https://developer-new.mozilla.org/en-US/docs/CSS/CSS_transitions$translate?tolocale=fr 2. After some translated strings, clik on "preview changes" blue button 3. instead of having a preview you get https://developer-new.mozilla.org/en-US/docs/preview-wiki-content with this friendly message : Internal Server Error An unhandled error occurred in the application. The error has been logged and an administrator was notified. We apologize for the inconvenience! Please start over on the home page. If you have additional information how to reproduce this problem, please file a bug. Thanks!
Thanks for the report, Jean-Bernard. I can't reproduce the issue here, but that doesn't necessarily mean it works. Raymond, could you take a look at this?
(In reply to John Karahalis [:openjck] from comment #1) > Thanks for the report, Jean-Bernard. > > I can't reproduce the issue here, but that doesn't necessarily mean it > works. Raymond, could you take a look at this? Tried a couple of times but wasn't able to reproduce
The traceback for his error is Traceback (most recent call last): File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/core/handlers/base.py", line 100, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/www/developer.mozilla.org/kuma/vendor/src/django-waffle/waffle/decorators.py", line 20, in _wrapped_view return view(request, *args, **kwargs) File "/data/www/developer.mozilla.org/kuma/apps/access/decorators.py", line 46, in _wrapped_view return view_fn(request, *args, **kwargs) File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/views/decorators/http.py", line 37, in inner return func(request, *args, **kwargs) File "/data/www/developer.mozilla.org/kuma/apps/wiki/views.py", line 835, in preview_revision wiki_content) File "/data/www/developer.mozilla.org/kuma/apps/wiki/kumascript.py", line 53, in post data=content, headers=headers) File "/data/www/developer.mozilla.org/kuma/vendor/src/requests/requests/api.py", line 135, in post return request('POST', url, data=data, **kwargs) File "/data/www/developer.mozilla.org/kuma/vendor/src/requests/requests/api.py", line 72, in request r.send() File "/data/www/developer.mozilla.org/kuma/vendor/src/requests/requests/models.py", line 339, in send resp = opener(req, timeout=self.timeout) File "/usr/lib64/python2.6/urllib2.py", line 391, in open response = self._open(req, data) File "/usr/lib64/python2.6/urllib2.py", line 409, in _open '_open', req) File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain result = func(*args) File "/data/www/developer.mozilla.org/kuma/vendor/src/requests/requests/packages/poster/streaminghttp.py", line 142, in http_open return self.do_open(StreamingHTTPConnection, req) File "/usr/lib64/python2.6/urllib2.py", line 1162, in do_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "/usr/lib64/python2.6/httplib.py", line 914, in request self._send_request(method, url, body, headers) File "/usr/lib64/python2.6/httplib.py", line 954, in _send_request self.send(body) File "/data/www/developer.mozilla.org/kuma/vendor/src/requests/requests/packages/poster/streaminghttp.py", line 81, in send self.sock.sendall(value) File "<string>", line 1, in sendall UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 70: ordinal not in range(128)
Blocks: 756263
Priority: -- → P1
Assignee: nobody → lcrouch
Whiteboard: c=wiki u=l10n s=2012-07-18 p=1
Blocks: 773292
No longer blocks: 756263
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/8fcbe3f1025189b01eee89835a4cf721c84a0f44 fix bug 771586 - utf8 encode content posted to kumascript https://github.com/mozilla/kuma/commit/83c3c6d34dbe097efd6afd7a591b0dffb61343b8 Merge pull request #389 from groovecoder/translation-preview-771586 fix bug 771586 - utf8 encode content posted to kumascript
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Version: Kuma → unspecified
Component: Website → Landing pages
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.