Bug 29099 - images not loading
Summary: images not loading
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: images (show other bugs)
Version: 0.15
Hardware: PC All
: P3 critical
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-19 18:54 UTC by Deepa
Modified: 2012-04-01 06:56 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Deepa 2004-05-19 18:54:40 UTC
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
Comment 1 Chris Bowditch 2004-05-20 08:32:03 UTC
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. 
Comment 2 Ioan Hepes 2004-06-23 15:34:51 UTC
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);

}
Comment 3 Glenn Adams 2012-04-01 06:56:12 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed