Roxas240 / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

Breaks when CSS style sheet reference URL uses the file URI notation file:/// instead of using http or https protocols #213

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Declare local style sheet file like this: <link rel="stylesheet" 
href="file:///<path_to_css_file>/css/reset.css"/>
2. Try to generate pdf from that

What is the expected output? What do you see instead?
NullPointerException.OutputStream closed

What version of the product are you using? On what operating system?
R8

Please provide any additional information below.
It happens while using the rendering grails plugin to get output a gsp in pdf
More file URI notation info: http://en.wikipedia.org/wiki/File_URI_scheme

Original issue reported on code.google.com by arui...@gmail.com on 10 Dec 2012 at 2:59

GoogleCodeExporter commented 9 years ago
The URI looks like this: file://C:/Workspace/my-app/web-app/css/layout.css

The Exception occurs in the StylesheetFactoryImpl class line 78

java.io.IOException: Stream closed

Original comment by arui...@gmail.com on 10 Dec 2012 at 4:14

GoogleCodeExporter commented 9 years ago
Sorry it does support file:/// URI
Please close

Original comment by arui...@gmail.com on 10 Dec 2012 at 5:09