mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Catch exception: ZIP does not support timestamps before 1980. Ref #1360.
This commit is contained in:
parent
e20e885d44
commit
d0ed6931d8
@ -931,7 +931,7 @@ class Project:
|
|||||||
yield from wait_run_in_executor(self._create_duplicate_project_file, project_path, zipstream)
|
yield from wait_run_in_executor(self._create_duplicate_project_file, project_path, zipstream)
|
||||||
with open(project_path, "rb") as f:
|
with open(project_path, "rb") as f:
|
||||||
project = yield from import_project(self._controller, str(uuid.uuid4()), f, location=location, name=name, keep_compute_id=True)
|
project = yield from import_project(self._controller, str(uuid.uuid4()), f, location=location, name=name, keep_compute_id=True)
|
||||||
except (OSError, UnicodeEncodeError) as e:
|
except (ValueError, OSError, UnicodeEncodeError) as e:
|
||||||
raise aiohttp.web.HTTPConflict(text="Can not duplicate project: {}".format(str(e)))
|
raise aiohttp.web.HTTPConflict(text="Can not duplicate project: {}".format(str(e)))
|
||||||
|
|
||||||
if previous_status == "closed":
|
if previous_status == "closed":
|
||||||
|
@ -54,7 +54,7 @@ class UDPLink(Link):
|
|||||||
try:
|
try:
|
||||||
(node1_host, node2_host) = yield from node1.compute.get_ip_on_same_subnet(node2.compute)
|
(node1_host, node2_host) = yield from node1.compute.get_ip_on_same_subnet(node2.compute)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
raise aiohttp.web.HTTPConflict(text=str(e))
|
raise aiohttp.web.HTTPConflict(text="Cannot get an IP address on same subnet: {}".format(e))
|
||||||
|
|
||||||
# Reserve a UDP port on both side
|
# Reserve a UDP port on both side
|
||||||
response = yield from node1.compute.post("/projects/{}/ports/udp".format(self._project.id))
|
response = yield from node1.compute.post("/projects/{}/ports/udp".format(self._project.id))
|
||||||
|
Loading…
Reference in New Issue
Block a user