149 Commits

Author SHA1 Message Date
tikD1337
406086c177 fix(web-ui): ship the bundled consoles' lib/ files (VNC and xpra)
The ".gitignore" rules "lib" and "lib64" (from the Python template, meant
for a virtualenv at the repository root) match a directory with that name
at any depth. They kept two folders of the bundled web UI out of git:

- assets/vnc-console/novnc/vendor/pako/lib/ (12 files, zlib for noVNC)
- assets/xpra-html5/js/lib/ (20 files)

Anything built from a git checkout (GitHub archives, Docker images) ships
without them. The server answers a missing asset with the web UI page, so
noVNC's module graph fails to load (a module served as text/html) and the
VNC console stays on "Initializing VNC Console..."; the xpra console loses
its scripts the same way.

Anchor both rules to the repository root and add the 32 files, taken from
gns3-web-ui v3.1.0a7 (the bundled version); every blob is identical to the
one in that tag. A test walks the VNC console's module imports and the xpra
pages' scripts and fails on any file that is not in the package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 12:09:50 +01:00
grossmj
179e7e0d17
Bundle web-ui v3.1.0a7 2026-10-21 15:24:00 +07:00
grossmj
3f2afb0e4a
Bundle web-ui v3.1.0a6 2026-09-27 19:10:11 +02:00
grossmj
51c6440403
Bundle web-ui v3.1.0a5 2026-08-19 17:57:42 +02:00
grossmj
d64fdd71a9
Bundle web-ui v3.1.0a4 2026-07-09 08:40:05 +02:00
grossmj
5992a284c9
Bundle web-ui v3.1.0a4 2026-07-08 21:48:48 +02:00
grossmj
aad66e8ede
Release v3.1.0a3 2026-06-06 23:19:24 +02:00
grossmj
259b7824af
Bundle web-ui v3.1.0a3 2026-06-06 23:11:04 +02:00
grossmj
7cf25bc0d5
Release v3.1.0a2 2026-05-13 00:34:05 +08:00
grossmj
7bb0a2a863
Bundle web-ui v3.1.0a2 2026-05-13 00:29:25 +08:00
grossmj
c6e2bfa9b6
Release v3.1.0a1 2026-04-25 13:19:19 +08:00
grossmj
7fc5601405
Bundle web-ui v3.1.0a1 2026-04-25 12:58:56 +08:00
grossmj
5d60626175
Bundle dev version of the web-ui 2026-04-21 13:16:36 +08:00
Guobin Yue
df28036a68
fix(deps): resolve 3 security vulnerabilities (CVE-2025-71176, CVE-2026-40347, CVE-2018-25031) (#2671)
* fix(deps): upgrade pytest to 9.0.3 to fix CVE-2025-71176

CVE-2025-71176: pytest 9.0.2 and earlier versions have a local
security vulnerability due to predictable temporary directory naming.

- pytest: 8.4.2 → 9.0.3
- Python 3.10+ is now required

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(deps): upgrade python-multipart to 0.0.26 to fix CVE-2026-40347

CVE-2026-40347: python-multipart < 0.0.26 has a denial of
service vulnerability when parsing multipart data.

- python-multipart: 0.0.22 → 0.0.26

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(deps): upgrade swagger-ui to 4.1.3 to fix CVE-2018-25031

CVE-2018-25031: swagger-ui < 4.1.3 has a spoofing vulnerability
where remote attackers can display remote OpenAPI definitions
via crafted URLs.

- swagger-ui: 3.30.0 → 4.1.3
- Updated swagger-ui-bundle.js and swagger-ui.css

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(api): change FastAPI version from "v3" to "3.0.0" for Swagger UI 4.1.3 compatibility

Swagger UI 4.x enforces stricter version format validation.
The version "v3" is not accepted by the new validator.

Changed from:
- version="v3"

To:
- version="3.0.0"

This affects both controller and compute API definitions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(deps): upgrade swagger-ui to 5.32.4

Fixes "Unable to render this definition" error when loading OpenAPI 3.0
docs. Swagger UI 3.x had incomplete OpenAPI 3.0 support.

- swagger-ui: 3.19.1 → 5.32.4 (latest)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 00:35:15 +08:00
grossmj
0d3fad8c8f
Merge branch '2.2' into 3.0
# Conflicts:
#	gns3server/controller/__init__.py
#	gns3server/controller/export_project.py
#	gns3server/controller/project.py
#	gns3server/controller/snapshot.py
#	gns3server/crash_report.py
#	gns3server/schemas/snapshot.py
#	gns3server/static/web-ui/26.34a83d9cee7db39cd0de.js
#	gns3server/static/web-ui/index.html
#	gns3server/static/web-ui/main.d74d38241f0602d1b3e0.js
#	gns3server/version.py
#	gns3server/web/route.py
#	tests/handlers/api/controller/test_project.py
#	tests/handlers/api/controller/test_snapshot.py
2026-04-11 19:22:05 +08:00
grossmj
c6eec799fb
Remove old files 2026-04-10 20:27:46 +08:00
grossmj
8503840307
Bundle web-ui v2.2.58 2026-04-10 20:24:16 +08:00
grossmj
73ffb22aa2
Bundle web-ui v3.1.0.dev1 2026-03-07 17:47:44 +08:00
grossmj
975ca254fd
Release v3.0.5 2025-05-14 19:11:44 +02:00
grossmj
89cf5ea8e7
Bundle web-ui v3.0.5 2025-05-14 19:06:42 +02:00
grossmj
4418d6bb2b
Release v2.2.54 2025-04-21 17:15:22 +07:00
grossmj
4dd1803a70
Bundle web-ui v2.2.54 2025-04-21 16:40:59 +07:00
grossmj
a7f2b1fddc
Require minimum 8 characters for passwords 2025-02-23 12:05:19 +10:00
grossmj
1f4071af93
Bundle web-ui v3.0.4 2025-02-23 12:04:22 +10:00
grossmj
b5e2bb1561
Release v3.0.3 2025-01-22 19:06:42 +10:00
grossmj
3003ed1465
Bundle web-ui v3.0.3 2025-01-22 18:57:21 +10:00
grossmj
369fcaa512
Release v2.2.53 2025-01-21 11:52:11 +10:00
grossmj
7b7d3d676f
Bundle web-ui v2.2.53 2025-01-21 11:43:11 +10:00
grossmj
469bd692a0
Release v3.0.2 2025-01-03 21:44:00 +07:00
grossmj
d34c3a0ac7
Bundle web-ui v3.0.2 2025-01-03 21:40:11 +07:00
grossmj
654b84cb7b
Release v3.0.1 2024-12-27 21:05:24 +07:00
grossmj
07ac4f5834
Bundle web-ui v3.0.1 2024-12-27 21:00:58 +07:00
grossmj
d54e6babe2
Release v3.0.0 2024-12-20 18:20:42 +07:00
grossmj
a9b7869e04
Bundle web-ui v3.0.0 2024-12-19 19:49:40 +07:00
grossmj
7229707746
Use static favicon for API docs. Ref #3674 2024-12-19 17:25:42 +07:00
grossmj
0ee73605c0
Configure self-hosting JavaScript and CSS for docs 2024-12-19 16:54:11 +07:00
grossmj
a8014da10b
Release v2.2.52 2024-12-02 11:14:23 +10:00
grossmj
f6080013e3
Bundle web-ui v2.2.52 2024-12-02 11:09:30 +10:00
grossmj
b2db8896ea
Release v3.0.0rc2 2024-11-20 14:00:49 +10:00
grossmj
a22f7ac3d2
Bundle web-ui v3.0.0rc2 2024-11-20 13:51:15 +10:00
grossmj
2b5c6ce8fb
Release v2.2.50 2024-10-21 12:14:18 +10:00
grossmj
0aac62d03a
Bundle web-ui v2.2.50 2024-10-21 12:08:42 +10:00
grossmj
b80e1f3a22
Downgrade aiohttp to v3.9.5 2024-08-11 11:22:20 -06:00
grossmj
ba13b0b078
Bundle web-ui v3.0.0rc1 2024-08-11 11:09:27 -06:00
grossmj
b1209155f5
Release v2.2.49 2024-08-06 12:55:15 +02:00
grossmj
7cebb9472a
Bundle web-ui v2.2.49 2024-08-06 12:41:06 +02:00
grossmj
8659439829
Release v2.2.48.1 2024-07-12 18:26:16 +02:00
grossmj
677bc389a5
Bundle web-ui v2.2.48.1 2024-07-11 23:44:24 +02:00
grossmj
6e8e0764c1
Release v2.2.48 2024-07-08 18:44:09 +02:00
grossmj
eaa18ad624
Bundle web-ui v2.2.48 2024-07-08 18:24:02 +02:00