Capture: \"The site's robots.txt is honoured\" is shown even when the instance is set to ignore robots.txt #630
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#630
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found on 2026-09-29 in a read-only review of postulo at
95348908d, comparing the capture page's help text with the fetching code.Checked again on 2026-10-01 against
mainat0a5cad587: still present. The code is now atplugins/fetching.py:110-111(the early return inrobots_allow) andcore/site.py:131-135(capture_ignore_robots); the template line andCaptureCreateView._renderhave not moved.Under How this works the capture form tells everybody that the site's robots.txt is honoured. Since robots.txt became a Server settings switch (and
POSTULO_CAPTURE_IGNORE_ROBOTS), an instance can turn that off, and thenrobots_allowanswers yes without fetching anything. The page then says the opposite of what the instance does.templates/jobs/capture_form.html:85({% translate "The site's robots.txt is honoured." %}, unconditional);plugins/fetching.py:154-155(if site.capture_ignore_robots(): return True); the policy incore/site.py:154-158;CaptureCreateView._renderinjobs/capture_views.py:87-91passes onlyform,sourcesandknown.templates/server/capture.html:25-29). The neighbouring line about private addresses is accurate, since capture always usespublic_only_client.site.capture_ignore_robots()into the capture form's context and choose between two sentences: the current one, and one saying this instance has been set not to consult robots.txt.Done when
tests/test_capture.pysets the stored policy to ignore robots.txt, renders the capture form and asserts the "honoured" sentence is absent and the other present; it fails today.