all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Arthur Bied-Charreton <a.bied-charreton@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH 0/5] fix #7077: Improve ID validation error messages
Date: Wed, 21 Jan 2026 11:32:28 +0100	[thread overview]
Message-ID: <20260121103407.187187-1-a.bied-charreton@proxmox.com> (raw)

This series improves error messages for ID validation by adding explicit
length checks before regex validations.

The regex patterns used in different ID validators have implicit length
requirements that were often not reflected in the error messages.

pve-network
    src/PVE/Network/SDN/Controllers/Plugin.pm | 12 +++++++++++-
    src/PVE/Network/SDN/Dns/Plugin.pm         |  5 +++++
    src/PVE/Network/SDN/Fabrics.pm            |  5 +++++
    src/PVE/Network/SDN/Ipams/Plugin.pm       |  5 +++++
    src/PVE/Network/SDN/VnetPlugin.pm         | 12 +++++++++++-
    src/PVE/Network/SDN/Zones/Plugin.pm       | 12 +++++++++++-
    6 files changed, 48 insertions(+), 3 deletions(-)

proxmox
    pve-api-types/src/types/verifiers.rs | 4 ++++
    1 file changed, 4 insertions(+)

pve-storage
    src/PVE/Storage/Plugin.pm | 5 +++++
    1 file changed, 5 insertions(+)

pve-common
    src/PVE/JSONSchema.pm | 5 +++++
    2 files changed, 6 insertions(+), 5 deletions(-)


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


             reply	other threads:[~2026-01-21 10:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-21 10:32 Arthur Bied-Charreton [this message]
2026-01-21 10:32 ` [pve-devel] [PATCH pve-common] fix #7077: Improve error message for IDs shorter than 2 characters Arthur Bied-Charreton
2026-01-21 18:00   ` [pve-devel] applied: " Thomas Lamprecht
2026-01-21 10:32 ` [pve-devel] [PATCH pve-storage] fix #7077: Improve error message for IDS " Arthur Bied-Charreton
2026-01-21 10:32 ` [pve-devel] [PATCH proxmox] fix #7077: Improve error message for SDN IDs " Arthur Bied-Charreton
2026-01-21 10:32 ` [pve-devel] [PATCH pve-network 1/2] fix #7077: Improve error messages for ID length mismatch Arthur Bied-Charreton
2026-01-21 10:32 ` [pve-devel] [PATCH pve-network 2/2] fix #7077: Respect noerr flag in SDN ID validation Arthur Bied-Charreton

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=20260121103407.187187-1-a.bied-charreton@proxmox.com \
    --to=a.bied-charreton@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal