fix(mcs150): MinIO upload used wrong method fobj_put -> fput_object

The MCS-150/USDOT PDF was generated fine but the MinIO upload threw 'Minio object
has no attribute fobj_put' (wrong method name + signature), so the prepared filing
PDF was never persisted -- nothing for an admin to review at the verification gate,
and the esign-completed re-dispatch failed with 'File not found'. Use the correct
minio fput_object(bucket, key, file_path). Affects every MCS-150/USDOT filing.
This commit is contained in:
justin 2026-06-10 12:08:12 -05:00
parent 1fe942c109
commit 09d928a582

View file

@ -120,9 +120,8 @@ class MCS150UpdateHandler:
)
bucket = os.environ.get("MINIO_BUCKET", "performancewest")
minio_path = f"filings/mcs150/{order_number}/{os.path.basename(pdf_path)}"
mc.fobj_put(bucket, minio_path, open(pdf_path, "rb"),
length=os.path.getsize(pdf_path),
content_type="application/pdf")
mc.fput_object(bucket, minio_path, pdf_path,
content_type="application/pdf")
# Generate presigned URL for fax/web submission
from datetime import timedelta
pdf_url = mc.presigned_get_object(bucket, minio_path, expires=timedelta(hours=2))