- main.py: remove duplicate /health endpoint definition - text_extract.py: HTML-escape extracted plain text before indexing so raw markup in uploaded documents can't render as live HTML via search snippets (stored XSS fix) - document_service.py: base64-encode content when UTF-8 decoding fails instead of raising UnicodeDecodeError (500) on binary files; add upload validation for file extension (allowlist) and size (10MB max) - routers/documents.py: map new validation errors to HTTP 400 with a clear detail message instead of letting them 500 - add/extend tests covering escaping, binary get_document, and upload validation rejection + acceptance paths |
||
|---|---|---|
| .. | ||
| test_document_service.py | ||
| test_main.py | ||
| test_minio_client.py | ||
| test_routers_documents.py | ||
| test_routers_search.py | ||
| test_search_client.py | ||
| test_text_extract.py | ||