Closed
Bug 1628446
Opened 4 years ago
Closed 4 years ago
Unable to download a ZIP of translations
Categories
(Webtools Graveyard :: Pontoon, defect, P2)
Webtools Graveyard
Pontoon
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mathjazz, Assigned: mathjazz)
Details
Attachments
(1 file)
For projects with less than 10 files, "Download Translations" option downloads all files in a ZIP file. That feature is currently broken.
Apr 08 17:00:42 mozilla-pontoon heroku/router at=info method=GET path="/download/?code=sl&slug=amo&part=LC_MESSAGES/django.po" host=pontoon.mozilla.org request_id=56a76ca5-2419-4d48-8351-8940ec432eb9 fwd="109.182.197.178" dyno=web.2 connect=7ms service=1054ms status=500 bytes=5198 protocol=https
Internal Server Error: /download/
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/app/.heroku/python/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/app/.heroku/python/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/app/.heroku/python/lib/python3.7/site-packages/newrelic/hooks/framework_django.py", line 544, in wrapper
return wrapped(*args, **kwargs)
File "/app/.heroku/python/lib/python3.7/contextlib.py", line 74, in inner
return func(*args, **kwds)
File "/app/pontoon/base/views.py", line 631, in download
content, filename = utils.get_download_content(slug, code, part)
File "/app/pontoon/base/utils.py", line 285, in get_download_content
zf.write(locale_path, resource.path)
File "/app/.heroku/python/lib/python3.7/zipfile.py", line 1763, in write
with open(filename, "rb") as src, self.open(zinfo, 'w') as dest:
File "/app/.heroku/python/lib/python3.7/zipfile.py", line 1506, in open
return self._open_to_write(zinfo, force_zip64=force_zip64)
File "/app/.heroku/python/lib/python3.7/zipfile.py", line 1603, in _open_to_write
self.fp.write(zinfo.FileHeader(zip64))
TypeError: string argument expected, got 'bytes'
I found this, might be related:
https://stackoverflow.com/questions/32075135/python-3-in-memory-zipfile-error-string-argument-expected-got-bytes
Assignee | ||
Updated•4 years ago
|
Assignee: nobody → m
Status: NEW → ASSIGNED
Comment 1•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•