From 4dfc7eb30cec8321137b36bcb9a0daa8343a1563 Mon Sep 17 00:00:00 2001 From: Michal Fox Date: Fri, 25 Sep 2026 11:31:04 +0200 Subject: [PATCH] fix #6516: api: backup jobs: limit the job ID length on creation All backup job API calls that take an existing job ID use the 'pve-backup-jobid' option, which is limited to 50 characters. The create call uses its own 'id' parameter without that limit, so a longer ID can be created, but the job can then neither be read, updated nor deleted through the API or the web UI, and has to be removed from jobs.cfg by hand. Apply the same limit when creating the job. Signed-off-by: Michal Fox --- PVE/API2/Backup.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/API2/Backup.pm b/PVE/API2/Backup.pm index 3bd8559..a890c1f 100644 --- a/PVE/API2/Backup.pm +++ b/PVE/API2/Backup.pm @@ -259,6 +259,7 @@ __PACKAGE__->register_method({ type => 'string', description => "Job ID (will be autogenerated).", format => 'pve-configid', + maxLength => 50, optional => 1, # FIXME: make required on 8.0 }, schedule => {