quanted / cts_app

cts repo
3 stars 3 forks source link

Images not showing up in pdf output for Transformation Products workflow #160

Closed cstevens227 closed 3 years ago

cstevens227 commented 3 years ago

Instead of showing an image, the pdf shows the following, as an example: <img class="metabolite" id="molecule 1"alt="ClCCOP(=O)(OCCCl)OCCCl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAEiCAYAAADQ9s/LAAAQnElEQVR42u2db2id1RnAn7LUpdJCGP2QYdyCCy7DsGVbmP3Q2UDEKmXUEUuEfsgg1spKW6RjVQJNoR86V7CwomkSJR+height=290 />

This is happening on https://qed.epa.gov/cts/ as well as the GDIT development server.

popenc commented 3 years ago

Thanks for making this an issue in GitHub!

Do you know if there's a server that the PDFs are showing up as expected?

popenc commented 3 years ago

This is happening on GDIT staging and CDX server as well, and the HTML files are also affected.

Pushed a commit up (780ae75b01b08cc5977c6570b51e226de28e1ce1) that should fix this issue.

TODO: Security scan(s) to ensure this change doesn't create a security risk.

popenc commented 3 years ago

This now works in production.