Change file timestamps if necessary because ZIP does not support timestamps before 1980. Fixes #1360.

This commit is contained in:
grossmj committed 2018-08-25 18:10:40 +07:00
1 parent 814526ba26
commit 38b72079b2
3 files changed
+24 -3

No files matched your search

@@ -304,8 +304,8 @@ class ProjectHandler:
yield from response.write_eof()
# Will be raise if you have no space left or permission issue on your temporary directory
# RuntimeError: something was wrong during the zip process
except (OSError, RuntimeError) as e:
raise aiohttp.web.HTTPNotFound(text="Can't export project: {}".format(str(e)))
except (ValueError, OSError, RuntimeError) as e:
raise aiohttp.web.HTTPNotFound(text="Cannot export project: {}".format(str(e)))
@Route.post(
r"/projects/{project_id}/import",