Hi, I am using xsl-fo to generate a pdf and the images do not appear if I use https though they work fine with http. I work on Windows2K . When I try to get the version of XSL-FO using org.apache.fop.apps.Version.getVersion() I get it as null. I would like to know is FOP is SSL-compliant or I need a later version or any other thing that I am missing out on. Its very urgent and any help offered is appreciated. Thanks, Deepa
This issue has been discussed many times in the archives. Here is a link to one such thread: http://marc.theaimsgroup.com/?l=fop-user&m=106140830410154&w=2 It would appear that this issue may be related to the JDK. You may want to do a search yourself and review other answers. Polite Request: When facing problems such as this, could you please raise it on the user mailing list before raising a bug.
You need to put this before you make the connection in your code or in the worst case inside the FopImageFactory.java before the image is being loaded: protected void initHTTPSForFOP() { //to solve the "HTTPS hostname wrong: should be <url>" error when recovering Image Informations //the HttpsURLConnection needs to have a default HostnameVerifier configured HostnameVerifier tHostnameVerifier = new HostnameVerifier() { public boolean verify(String aUrlHostName, String aCertHostName) { //now only returns true but can verify if aUrlHostName equals to a given URL //System.out.println("HTTPS Warning"); return true; } }; HttpsURLConnection.setDefaultHostnameVerifier (tHostnameVerifier); }
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed