Sharing: legacy update fixture uses unsupported PATCH method #1292

Open
opened 2026-10-07 01:04:23 +00:00 by kayg · 0 comments
Owner

Steps:

  1. Run bun e2e/share.mjs against a fresh local production server.
  2. Create and save the trip-audit public link through the Share dialog.
  3. Run the legacy API update assertion in the fixture.

Expected: the fixture uses the current public-link update contract.
Actual: it sends PATCH /api/v1/files/links/{id} and receives 405 while asserting 200. The route metadata and the current Share UI both use PUT.
Evidence: artifacts/bash-core/share/link-update-method.txt; apps/web/e2e/share.mjs:356; crates/plugins/files/src/public.rs declares PUT; apps/web/src/lib/files/api.ts sends PUT.
Severity: minor (stale E2E fixture; no current UI failure demonstrated).

Steps: 1. Run `bun e2e/share.mjs` against a fresh local production server. 2. Create and save the `trip-audit` public link through the Share dialog. 3. Run the legacy API update assertion in the fixture. Expected: the fixture uses the current public-link update contract. Actual: it sends `PATCH /api/v1/files/links/{id}` and receives 405 while asserting 200. The route metadata and the current Share UI both use PUT. Evidence: `artifacts/bash-core/share/link-update-method.txt`; `apps/web/e2e/share.mjs:356`; `crates/plugins/files/src/public.rs` declares PUT; `apps/web/src/lib/files/api.ts` sends PUT. Severity: minor (stale E2E fixture; no current UI failure demonstrated).
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal-v0#1292
No description provided.