dualfroz 0055e9b2c4 fix #7586: notification: check names of matchers and targets in the UI
The names of notification matchers and targets have to be safe IDs,
but only the name of webhook targets was checked in the UI, and that
without saying what is wrong. For all others, an invalid name, for
example one containing a space, was only rejected by the API with a
'parameter verification errors (400)' message, without saying which
characters are allowed.

Add a 'SafeId' vtype, which uses the existing safe ID regex and says
which characters are allowed, and use it for the names of matchers and
all target types.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-03 01:29:24 +02:00
S
Description
My contributions to proxmox-git/proxmox-widget-toolkit: 6 commits
132 KiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 100%