From 3fac1460cdd4c2f612f6ccc07c86fdee4bfa8a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Thu, 27 Aug 2026 08:48:54 +0000 Subject: [PATCH] close the request-body todo: the proxy claims only what it forwards --- .../a-plugin-s-own-routes-lose-their-request-body.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/todo/plugin-infrastructure/a-plugin-s-own-routes-lose-their-request-body.md b/todo/plugin-infrastructure/a-plugin-s-own-routes-lose-their-request-body.md index de5ddf18..52e3c569 100644 --- a/todo/plugin-infrastructure/a-plugin-s-own-routes-lose-their-request-body.md +++ b/todo/plugin-infrastructure/a-plugin-s-own-routes-lose-their-request-body.md @@ -2,7 +2,7 @@ id: plugin-infrastructure/a-plugin-s-own-routes-lose-their-request-body title: "A plugin that has a sidecar proxy loses the request body on its OWN routes" theme: plugin-infrastructure -status: open +status: done created: 2026-08-27 date_source: stated order: 9 @@ -36,3 +36,11 @@ diagnosed while a phone was waiting. **The caldav plugin works around it locally which is most of them. They have not hit it because their own routes are GETs, or because their writes go to the sidecar. A plugin adding its first non-proxied POST will hit it, and the symptom — a required field reported missing on a request that plainly has it — points at the caller rather than at this. + +--- + +**Done 2026-08-27** (`f00abe81` in the platform, and caldav's own repo). `createSidecarProxy` takes +`proxiedSubPath`, so a proxy claims only what it forwards — caldav claims `/api/caldav/_officer` and its +own routes are parsed normally. Omitted still means the whole prefix, so no other plugin changed. +Caldav's local `jsonBody()` workaround is gone. Verified: a POST to the plugin's own route read its body, +and the proxied namespace still reaches the sidecar.