Open ibarra-michelle opened 5 months ago
PDFs submitted via ECMPS appear in the CDX submission history, and the files that appear in CDX match the PDFs submitted via ECMPS. This is true for singular and multiple PDFs submitted at the same time. JSON and XML files also submit and appear in CDX properly.
Note: The QA dropdown option is currently called "MATS Data" vs. "MATS PDF/XML Data".
Verified in test - the MATS pdf file is submitted and properly displays the pdf text:
Description: For non-org users, the successfully imported MATS pdf is corrupted during Sign & Submit process.
Context: This issue was initially identified in the ECMPS test environment which does not have the ICAM changes. This issue was confirmed to still exist in the ECMPS dev environment with the ICAM changes. Imported XML files are not corrupted during the Sign & Submit process in both the ECMPS dev and test environment. When I tested this issue in the ECMPS test, the pdf that is in the CDX test Submission History table is also corrupted.
Recreating the issue: When a non-organization is logged into ECMPS dev, navigates to the QA module selects the Manatee facility (ORIS 6042, Location MTCT3A), clicks Open & Checkout, clicks on Import Data button, selects MATS PDF/XML from the drop down, clicks the Continue button, to open the Import MATS PDF/XML Data pop-up window. In the pop-up window, select the MTCT3A for Location, selects Linearity, selects EPA-002-1001, selects a pdf file to upload, and then clicks the Import button. Then the user receives the import is successful message. Then, outside of the ECMPS UI dev environment, the user downloads the imported file from the mats-bulk-files-import bucket in cloud.gov. The downloaded pdf file from the mats-bulk-files-import bucket is the same file that was imported (i.e., not corrupted).
Going back into the ECMPS UI dev env, when the user receives the import is successful message, the user then navigates to the Submit module, filters and select the facility, selects the imported file that was submitted, goes through the Sign & submit process, and then clicks the Submit button. Then, outside of the ECMPS UI dev environment, the user can download the imported file from the mats-bulk-files bucket in cloud.gov. The downloaded pdf file from the mats-bulk-files bucket is now corrupted and no longer displays the pdf text it had in the mats-bulk-files-import bucket.
Acceptance Criteria