Capture API: a page the extension could read nothing from is refused whatever the person corrected #710

Closed
opened 2026-10-04 15:24:43 +00:00 by tiagoagueda · 0 comments
Owner

Left over from postulo-chromium#24 (fixed there in part, commit b7c8e78).

When the extension reads nothing from a page, the person can still correct the fields by hand in the extension's review step. The capture is nonetheless refused by the core as having nothing read, whatever was typed. The extension cannot work around this; the check belongs in the core's capture endpoint.

What to do

  • Make the capture endpoint judge the fields as sent, after the person's corrections, not only what the page yielded: a title and a company typed by hand are a posting.
  • Keep refusing a capture with no title and nothing else, as a problem document naming the field (RFC 9457, as the rest of the API).

Done when

  • A capture with an empty html/read result but a hand-typed title is accepted; one with nothing at all is still refused, naming the field.
  • A test in the capture API tests covers both.
Left over from postulo-chromium#24 (fixed there in part, commit `b7c8e78`). When the extension reads nothing from a page, the person can still correct the fields by hand in the extension's review step. The capture is nonetheless refused by the core as having nothing read, whatever was typed. The extension cannot work around this; the check belongs in the core's capture endpoint. ## What to do - Make the capture endpoint judge the fields as sent, after the person's corrections, not only what the page yielded: a title and a company typed by hand are a posting. - Keep refusing a capture with no title and nothing else, as a problem document naming the field (RFC 9457, as the rest of the API). ## Done when - A capture with an empty `html`/read result but a hand-typed title is accepted; one with nothing at all is still refused, naming the field. - A test in the capture API tests covers both.
tiagoagueda added this to the 0.5.0 milestone 2026-10-25 17:04:12 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
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
Postulo/postulo#710
No description provided.