From 09d928a58273c599ebc73b95037d0c5a844143ec Mon Sep 17 00:00:00 2001 From: justin Date: Wed, 10 Jun 2026 12:08:12 -0500 Subject: [PATCH] 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. --- scripts/workers/services/mcs150_update.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/workers/services/mcs150_update.py b/scripts/workers/services/mcs150_update.py index a0b73a6..eb6ca97 100644 --- a/scripts/workers/services/mcs150_update.py +++ b/scripts/workers/services/mcs150_update.py @@ -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))