From: Jakob Klocker <j.klocker@proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Jakob Klocker <j.klocker@proxmox.com>
Subject: [PATCH qemu-server] fix #7480: api: apply tag case-sensitivity setting on VM creation
Date: Fri, 22 May 2026 16:42:18 +0200 [thread overview]
Message-ID: <20260522144218.38831-1-j.klocker@proxmox.com> (raw)
The case-sensitivity setting from datacenter.cfg was not checked
when tags were set during VM creation. Tags containing capital
letters were stored verbatim, while the same tags applied later
via the update endpoint were normalized. This led to inconsistent
behavior depending on whether a tag was set at creation or
afterwards.
Link: https://bugzilla.proxmox.com/show_bug.cgi?id=7480
Signed-off-by: Jakob Klocker <j.klocker@proxmox.com>
---
src/PVE/API2/Qemu.pm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/PVE/API2/Qemu.pm b/src/PVE/API2/Qemu.pm
index e029a204..dd813e8a 100644
--- a/src/PVE/API2/Qemu.pm
+++ b/src/PVE/API2/Qemu.pm
@@ -1500,6 +1500,10 @@ __PACKAGE__->register_method({
$conf->{lock} = 'import' if $live_import_mapping;
+ if (defined $conf->{tags}) {
+ $conf->{tags} = PVE::GuestHelpers::get_unique_tags($conf->{tags});
+ }
+
PVE::QemuConfig->write_config($vmid, $conf);
};
my $err = $@;
--
2.47.3
reply other threads:[~2026-05-22 14:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260522144218.38831-1-j.klocker@proxmox.com \
--to=j.klocker@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox