Am 22.01.25 um 11:08 schrieb Markus Frank: > +my $map_fmt = { > + node => get_standard_option('pve-node'), > + path => { > + description => "Absolute directory path that should be shared with the > guest.", > + type => 'string', > + format => 'pve-storage-path',
I now noticed that paths with commas do not work for the mapping. They cannot be passed along, since the API endpoint requires the full mapping as a property string and we have no way of escaping commas AFAIK. To make it work, we could require paths to be (base64?) encoded when passed via API. We might also want to think about writing them encoded to the config file since it's also saved as the property string there. If we do not want to support such paths, I think we should restrict the allowed characters, e.g. our storage plugin already has a $SAFE_CHAR_WITH_WHITESPACE_CLASS_RE that could be used to register a restricted format (if we don't already have one). Doesn't support anything non-ASCII either though. And it does support '=' which causes issues in the UI (seems to work in the backend though). @other devs: opinions? _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel