Bug fix for infinite spinner on system summary

cursedstranger

New Member
Dec 30, 2023
3
1
3
I installed proxmox recently and noticed a minor bug in the javascript for loading the system summary in the latest version.

/usr/share/pve-manager/js/pvemanagerlib.js
line 43269

let buildDate = kernel.version.match(/\((.+)\)\s*$/)[1] ?? 'unknown';
should read something like:
let buildDate = kernel.version.match(/\((.+)\)\s*$/)?.[1] ?? 'unknown';

On my system the regex fails to match, so it attempts to reference the first element of null/undefined and throws an exception. I believe the intended behavior is to assign a value of 'unknown'.

I've updated the code on my system so this is more of a notice to help anyone else that comes across it.
Happy proxmox-ing!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!