The Gateway now sniffs attachment bytes against the declared type, but an attachment carrying only a URL is passed through with its declared type unchecked. Decide where the bytes are fetched and checked. Done when a URL-only attachment whose content contradicts its declared type is refused or retyped.
Imported from beads archie-core-ycrnb · type bug · priority P2 · created 2026-10-27
The Gateway now sniffs attachment bytes against the declared type, but an attachment carrying only a URL is passed through with its declared type unchecked. Decide where the bytes are fetched and checked. Done when a URL-only attachment whose content contradicts its declared type is refused or retyped.
---
_Imported from beads `archie-core-ycrnb` · type bug · priority P2 · created 2026-10-27_
Fixed in cc842864: checkInbound fetches the first 512 bytes of a URL-only image, audio or voice attachment through the public-address-only client (no redirects, 10s) and runs the existing sniff on them. A mismatch or an unreadable URL is refused with InvalidArgument; the stored attachment is unchanged. Covered by URL rows in TestCheckInboundRefusesContradictoryMedia.
Fixed in cc842864: checkInbound fetches the first 512 bytes of a URL-only image, audio or voice attachment through the public-address-only client (no redirects, 10s) and runs the existing sniff on them. A mismatch or an unreadable URL is refused with InvalidArgument; the stored attachment is unchanged. Covered by URL rows in TestCheckInboundRefusesContradictoryMedia.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The Gateway now sniffs attachment bytes against the declared type, but an attachment carrying only a URL is passed through with its declared type unchecked. Decide where the bytes are fetched and checked. Done when a URL-only attachment whose content contradicts its declared type is refused or retyped.
Imported from beads
archie-core-ycrnb· type bug · priority P2 · created 2026-10-27Fixed in
cc842864: checkInbound fetches the first 512 bytes of a URL-only image, audio or voice attachment through the public-address-only client (no redirects, 10s) and runs the existing sniff on them. A mismatch or an unreadable URL is refused with InvalidArgument; the stored attachment is unchanged. Covered by URL rows in TestCheckInboundRefusesContradictoryMedia.