fix: Proxmox PDM v1.2.0 bugs and feature parity #94
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sarman/tftsr-devops_investigation#94
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/proxmox-v1.2.0-bugs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This PR fixes critical bugs preventing Proxmox PDM v1.2.0 from working correctly:
Changes
Critical Fixes
Testing
Files Changed
Related
Automated PR Review (qwen3-coder-next via liteLLM):\n\nSummary
The PR adds Proxmox Datacenter Manager v1.2.0 support, fixing critical bugs including cluster save functionality (now using real IPC calls), adding the Proxmox settings page, and implementing expandable submenu navigation with 12 management pages. The changes are well-scoped, properly typed, and follow existing patterns in the codebase.
Findings
[WARNING]
src/lib/tauriCommands.ts:1636-addProxmoxClusterCmddoes not validate theclusterTypeparameter at the call site; TypeScript allows"ve" | "pbs"but the Rust backend (add_proxmox_cluster) expects a specific enum or string variant.Evidence:
The Rust function
add_proxmox_clusteraccepts aClusterTypeenum, but there is no compile-time guarantee that the frontend passes"ve"or"pbs"consistently with Rust’s expectations.Fix: Add JSDoc or input validation in
addProxmoxClusterCmdto clarify expected values and ensure the Rust enum mapping is robust (already implemented in Rust, but frontend should guard against invalid inputs like"vms"or""). In practice,RemotesPage.tsxalready maps correctly ('pve' -> 've','pbs' -> 'pbs'), so this is low risk.[WARNING]
src/pages/Proxmox/RemotesPage.tsx:55- Password field inhandleAddRemoteis passed directly, buthandleEditRemotepasses an empty string''as password when updating. This may unintentionally reset the password on edit if the backend uses password replacement rather than update.Evidence:
Fix: Omit the password in
handleEditRemote, or pass a secure placeholder if the backend cannot accept an empty string. Ideally, the Rust backend should treat""as "no change" rather than "clear password". If the backend does not support partial updates, the UI should either: (a) require user to re-enter password, or (b) call a dedicatedupdate_proxmox_clustercommand instead of reusingadd_proxmox_cluster.Verdict: APPROVE WITH COMMENTS
The PR addresses critical bugs and adds necessary functionality as described. Two minor implementation concerns have been identified around parameter validation and password handling during cluster updates—both have low risk but should be addressed before production release.