[PR #3841] Fix version check for build.func #4584

Closed
opened 2025-11-20 06:10:42 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/community-scripts/ProxmoxVE/pull/3841

State: closed
Merged: No


✍️ Description

Fixed a bug in the pve_check() function where the Proxmox VE Helper Script incorrectly reported newer versions (e.g., 8.4.0) as outdated. Updated the version check logic to properly handle numeric comparisons and ensure compatibility with Proxmox VE version 8.1 or later.

Prerequisites (X in brackets)

  • [ X] Self-review completed – Code follows project standards.
  • [X ] Tested thoroughly – Changes work as expected.
  • [X ] No breaking changes – Existing functionality remains intact.
  • [X ] No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • [X ] 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔍 Code & Security Review (X in brackets)

  • [ X] Follows Code_Audit.md & CONTRIBUTING.md guidelines

📋 Additional Information (optional)

  • The issue was caused by incorrect version comparison logic in the pve_check() function, which relied on a regular expression that did not properly handle numeric comparisons for versions like 8.4.0.
  • The updated regex ensures compatibility with all Proxmox VE versions 8.1 and later, including patch versions and multi-digit minor versions (e.g., 8.10.0).
  • Thorough testing was performed on various Proxmox VE versions to confirm the fix.
**Original Pull Request:** https://github.com/community-scripts/ProxmoxVE/pull/3841 **State:** closed **Merged:** No --- ## ✍️ Description Fixed a bug in the `pve_check()` function where the Proxmox VE Helper Script incorrectly reported newer versions (e.g., 8.4.0) as outdated. Updated the version check logic to properly handle numeric comparisons and ensure compatibility with Proxmox VE version 8.1 or later. ## ✅ Prerequisites (**X** in brackets) - [ X] **Self-review completed** – Code follows project standards. - [X ] **Tested thoroughly** – Changes work as expected. - [X ] **No breaking changes** – Existing functionality remains intact. - [X ] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [X ] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [ ] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- ## 🔍 Code & Security Review (**X** in brackets) - [ X] **Follows `Code_Audit.md` & `CONTRIBUTING.md` guidelines** ## 📋 Additional Information (optional) <!-- Add any extra context, screenshots, or references. --> - The issue was caused by incorrect version comparison logic in the `pve_check()` function, which relied on a regular expression that did not properly handle numeric comparisons for versions like 8.4.0. - The updated regex ensures compatibility with all Proxmox VE versions 8.1 and later, including patch versions and multi-digit minor versions (e.g., 8.10.0). - Thorough testing was performed on various Proxmox VE versions to confirm the fix.
saavagebueno added the pull-request label 2025-11-20 06:10:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#4584