public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH pve-apiclient] pass parameters for DELETE requests as query string
@ 2026-03-18 13:22 Hannes Laimer
  2026-08-25  9:42 ` applied: " Fiona Ebner
  0 siblings, 1 reply; 2+ messages in thread
From: Hannes Laimer @ 2026-03-18 13:22 UTC (permalink / raw)
  To: pve-devel

The DELETE handler silently dropped all parameters, making it impossible
to call API endpoints that require them.

Encode parameters as query string, the same way GET requests do.

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
 src/PVE/APIClient/LWP.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/APIClient/LWP.pm b/src/PVE/APIClient/LWP.pm
index d8472f7..607cdf1 100755
--- a/src/PVE/APIClient/LWP.pm
+++ b/src/PVE/APIClient/LWP.pm
@@ -332,6 +332,7 @@ sub call {
             );
 
         } elsif ($method eq 'DELETE') {
+            $uri->query_form($param) if $param;
             $response = $ua->request(HTTP::Request::Common::DELETE($uri));
         } else {
             raise("method $method not implemented\n");
-- 
2.47.3





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* applied: [PATCH pve-apiclient] pass parameters for DELETE requests as query string
  2026-03-18 13:22 [PATCH pve-apiclient] pass parameters for DELETE requests as query string Hannes Laimer
@ 2026-08-25  9:42 ` Fiona Ebner
  0 siblings, 0 replies; 2+ messages in thread
From: Fiona Ebner @ 2026-08-25  9:42 UTC (permalink / raw)
  To: pve-devel, Hannes Laimer

On Wed, 18 Mar 2026 14:22:53 +0100, Hannes Laimer wrote:
> The DELETE handler silently dropped all parameters, making it impossible
> to call API endpoints that require them.
> 
> Encode parameters as query string, the same way GET requests do.

Applied, thanks!

[1/1] pass parameters for DELETE requests as query string
      commit: 296cc510d2a3d31d4d562074a409071106efc85e




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-25  9:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-18 13:22 [PATCH pve-apiclient] pass parameters for DELETE requests as query string Hannes Laimer
2026-08-25  9:42 ` applied: " Fiona Ebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal