1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/instances/templates
catborise fbc6c4976f fix(instances): change the edited NIC instead of adding a new one
The edit form posts net-*-<n> fields for NIC n and carries only the
new MAC. The backend read index 0 and looked the NIC up by the new MAC,
so editing a MAC detached nothing and attached a second NIC, and edits
of any NIC but the first were applied with empty values.

The form now also posts the current MAC (net-old-mac-<n>). The view
reads the submitted NIC's fields, validates the new MAC and reports
errors. The backend replaces the NIC with the old MAC, refuses an
unknown one, and on a failed attach restores the old NIC and raises
instead of reporting success.

The view crashed with a TypeError without a Referer header; it now
returns to the instance page, and a Referer from another site is
ignored.
2026-10-04 01:08:11 +03:00
..
instances fix(instances): change the edited NIC instead of adding a new one 2026-10-04 01:08:11 +03:00
add_instance_network_block.html change name for network model to nic type 2023-08-17 13:22:18 +03:00
add_instance_owner_block.html logger updates (#31) 2023-08-09 09:20:18 +03:00
add_instance_volume.html logger updates (#31) 2023-08-09 09:20:18 +03:00
allinstances.html fix listing vms for normal users 2024-02-13 14:24:38 +03:00
allinstances_index_grouped.html fix listing vms for normal users 2024-02-13 14:24:38 +03:00
allinstances_index_nongrouped.html bootstrap icon conversion fixes 2023-08-11 09:40:38 +03:00
bottom_bar.html logger updates (#31) 2023-08-09 09:20:18 +03:00
create_flav_block.html logger updates (#31) 2023-08-09 09:20:18 +03:00
create_inst_block.html bootstrap icon conversion fixes 2023-08-11 09:40:38 +03:00
create_instance_w1.html fix: serve compute JSON endpoints as application/json, build chipset list safely 2026-10-02 22:34:05 +03:00
create_instance_w2.html fix: serve JSON endpoints as application/json and build DOM safely 2026-10-02 18:29:11 +03:00
instance.html fix: serve JSON endpoints as application/json and build DOM safely 2026-10-02 18:29:11 +03:00
instance_actions.html feat(security): enforce require_POST on power actions, prevent open redirects, and isolate instance permissions 2026-09-27 13:20:45 +03:00