You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Guard remaining Minio call sites for DRS-backed document keys #34400
With client document uploads migrating from Minio to the Document Record Service (DRS, entity#34142 / entity#34180), the documents.file_key value can now be a DRS key ({documentClass}-{documentServiceId}, e.g. COOP-DS0000101951) instead of a Minio UUID. Two legal-api code paths still assume every file key is a Minio key:
Static document downloads — GET .../filings/{filing_id}/documents/static/{file_key} (business_documents.py) always fetches from Minio. DRS-backed documents (continuation-in authorization files, director affidavits, continuation-out uploads) fail to download.
Draft filing deletion — deleting a draft filing (business_filings.py delete_from_minio) always calls the Minio delete. DRS-backed uploads are never removed, leaving orphaned document records in the DRS.
Fix
Dispatch on the file key shape in both places, matching the pattern already used in filing validation and report serving: DRS-shaped keys go to the DRS (doc_service.get_document / doc_service.delete_document), all other keys go to Minio unchanged.
Activity
gunanagar commentedon Aug 4, 2026
Tested, all Good.