Repository navigation
fix(ingest): use compatible MIME refinements after byte detection - #608
Conversation
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
8c55e18 to
3da8dd7
Compare
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
- fix(ingest): retain extensions for content-guessed MIME types (kenn-io#561) - Detect local MIME types from file bytes first - fix(ingest): share byte-first MIME detection across local writers - fix(ingest): preserve MIME consumer behavior - Use rejected package bytes and source-built MinIO in CI - Rerun CI with current MinIO setup - Use PNG MIME for APNG suffixes - Capture MIME from the replacement hash pass - Test automatic put MIME and content receipt Generated with Codex Co-authored-by: Codex <noreply@openai.com>
acf43b8 to
3afa868
Compare
roborev: Combined Review (
|
Photo commands and package exports need image content in their fixtures. The old JPEG and TIFF placeholders contained plain text and relied on filename extensions to identify them. Byte-first MIME detection correctly classifies those placeholders as text, so the tests no longer reach the photo and image-export behavior they are meant to exercise. Generate small synthetic JPEG and TIFF images while retaining the existing workflow assertions and distinct page content. Generated with Codex Co-authored-by: Codex <noreply@openai.com>
roborev: Combined Review (
|
Docbank now identifies a JPEG by its contents, so it's stored as a JPEG even after another Windows program changes what the
.jpgextension means in the registry. Before, Docbank trusted that registry entry, so after such a change it stored JPEGs under the wrong type and photo features refused them.Local imports,
docbank putand load-file packages now decide a file's type from its first bytes. The extension decides only when the bytes don't identify the type, or when it names a more specific type the bytes fit, such as.csvon plain text. YAML and TeX files now count as text, so their contents are searchable.Camera RAW files look like TIFFs from their bytes, so TIFF bytes with a Sony, Canon, Nikon or DNG extension get that RAW type, and XMP sidecars get the XMP type. These rules ignore the registry, since that's what got changed. Files already stored keep the type they were stored with.
Refs #561