[pdm-devel] [PATCH datacenter-manager 1/6] ui: main: abort running task load on log out
Shannon Sterz
s.sterz at proxmox.com
Thu Nov 27 16:36:04 CET 2025
loading currently running tasks wasn't aborted on logout. this is due
to the Loader not being dropped as the DatacenterManagerApp is always
rendered and it never drops its loader. this could trigger a race
condition between a load with a potentially expired ticket and a new
log in request. if the load returned after the login, a user would be
kicked out right after logging in again.
Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
---
ui/src/main.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/ui/src/main.rs b/ui/src/main.rs
index 2cbc7a9..026b7ab 100644
--- a/ui/src/main.rs
+++ b/ui/src/main.rs
@@ -249,6 +249,7 @@ impl Component for DatacenterManagerApp {
}
Msg::Logout => {
//log::info!("CLEAR COOKIE");
+ self.running_tasks.abort();
self.remote_list_timeout = None;
proxmox_yew_comp::http_clear_auth();
self.login_info = None;
--
2.47.3
More information about the pdm-devel
mailing list