[pve-devel] applied: [PATCH qemu-server] fix: api: fix permission check for cloudinit drive update
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Jul 25 17:23:35 CEST 2023
On 13/03/2023 13:56, Friedrich Weber wrote:
> Trying to regenerate a cloudinit drive as a non-root user via the API
> currently throws a Perl error, as reported in the forum [1]. This is
> due to a type mismatch in the permission check, where a string is
> passed but an array is expected.
>
> [1] https://forum.proxmox.com/threads/regenerate-cloudinit-by-put-api-return-500.124099/
>
> Signed-off-by: Friedrich Weber <f.weber at proxmox.com>
> ---
> To see if we have the same problem for other API endpoints, I ran:
> grep -r "['\"]perm['\"][^[]*]" .
> in my locally checked-out repos, but found only this single occurrence.
>
> PVE/API2/Qemu.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
applied, thanks!
More information about the pve-devel
mailing list