HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Images with HTTPS does not work anymore
- This topic has 3 replies, 2 voices, and was last updated Oct 09, 2017
14:30:49 by rnilsen.
-
AuthorPosts
-
September 7, 2017 at 13:02#27158
Hi,
In 3.9.7, it was possible to use img tags with src as HTTPS. But it seems that when moving away from ss_css2.jar, this stopped working in all future releases. Having debugging enabled, I see this in the log:image not yet in cache: https://a.trellocdn.com/images/50b4ebc64391dc394a38e73aed57f0e2/header-logo.png<br /> not yet in cache: https://a.trellocdn.com/images/50b4ebc64391dc394a38e73aed57f0e2/header-logo.png<br /> resource https://a.trellocdn.com/images/50b4ebc64391dc394a38e73aed57f0e2/header-logo.png not found.<br /> image https://a.trellocdn.com/images/50b4ebc64391dc394a38e73aed57f0e2/header-logo.png not found.<br /> can not load image: https://a.trellocdn.com/images/50b4ebc64391dc394a38e73aed57f0e2/header-logo.png
I have tested on several images, and can’t get HTTPS to work. HTTP works. I have also configured socket timeout to 10000 ms without any effect. Any workaround for this?September 8, 2017 at 07:06#30075It is unlikely the changes in HTTPS functionality depend on a switch to new CSS cascading engine.
In order to find the issue reason I would recommend to do the following:
PD4ML supports so-called custom resource loaders.
pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.htmlTry to implement a debug version of HTTPS loader. I’ve attached our standard SSL loader implementation, which could give you some implementation ideas.
Please take into account: WebSphere and Weblogic implement their own versions of HTTPS protocol, and the implementations are not derived from the standard API.
September 12, 2017 at 04:57#30076This is working fine if I switch to a previous version of PD4ML, no changes done to the code. Are you actually able to get it to work with HTTPS in url of images on the latest version? If I use HTTP, the newest version is also working ok.
October 9, 2017 at 14:30#30077@rnilsen wrote:
This is working fine if I switch to a previous version of PD4ML, no changes done to the code. Are you actually able to get it to work with HTTPS in url of images on the latest version? If I use HTTP, the newest version is also working ok.
Hi, just requesting an update to this question, as we see other issues resolved in the latest version, but this is holding us back due to HTTPS not working. We use Tomcat 8, and as said before , everything was working fine until shifting to the release with the change in CSS engine. I would just like to get it confirmed that you get HTTPS to work with images on your end.
-
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.