- Add format validation and inspection for PDF, DOCX, Markdown, Text, HTML, and images - Implement secure decompression defenses (zip bombs, ratio checks) and image dimension limits - Implement FileStore with content-addressable storage and intake repositories - Add unit and integration tests for document intake, format sniffing, and storage roots - Include sample acceptance document fixtures in data/documents/
6 lines
207 B
Python
6 lines
207 B
Python
"""Safe ingestion domain errors shared across application and persistence."""
|
|
class IntakeError(ValueError):
|
|
def __init__(self, code, message):
|
|
super().__init__(message)
|
|
self.code = code
|