forked from Proxmox/proxmox
upid: remove arbitrary 128 max length for UPID
we can easily go beyond that when having long datastore/remote names also because we do 'systemd-encode' them, which means that every special char takes up 4 bytes (e.g. '-' => '\x2d') while we could just increase the lenght to say 256 or 512, i do not really see the benefit to limit this at all, since users cannot create tasks with arbitrary names, and all other fields are generated from other valid types (username, datastore, remote, etc.) Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
3cec879463
commit
5a37cfd4c0
@ -54,7 +54,6 @@ pub const PROXMOX_UPID_FORMAT: ApiStringFormat =
|
||||
|
||||
pub const UPID_SCHEMA: Schema = StringSchema::new("Unique Process/Task Identifier")
|
||||
.min_length("UPID:N:12345678:12345678:12345678:::".len())
|
||||
.max_length(128) // arbitrary
|
||||
.format(&PROXMOX_UPID_FORMAT)
|
||||
.schema();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user