[
https://issues.apache.org/jira/browse/OFBIZ-7137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacques Le Roux updated OFBIZ-7137:
---
Description:
While working on OFBIZ-7136 "Ugrade PDFBox to 1.8.12 (or 2.0.1?) due to
vulnerability" I noticed these PDF options no longer work. This was done with
OFBIZ-6504 "how to Create PDF with password Protected in Ofbiz"
# I did not get any error with ExampleReportPdfOptions but a blank screen.
# Here is the error in log for ExampleReportPdfBarcode
{code}
2016-05-27 14:11:35,737 |http-nio-8443-exec-7 |FOUserAgent
|E| Image not available. URI:
/example/control/qrcode;jsessionid=B15ED8C1DE5124CA1769B8DEBDD8C1BD.jvm1?message=Example%201=b
mp=UTF-8=true=20=20.
Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is
not supported. No ImagePreloader found for /examp
le/control/qrcode;jsessionid=B15ED8C1DE5124CA1769B8DEBDD8C1BD.jvm1?message=Example%201=bmp=UTF-8=true=20=20
(See position 43:308)
org.apache.xmlgraphics.image.loader.ImageException: The file format is not
supported. No ImagePreloader found for
/example/control/qrcode;jsessionid=B15ED8C1DE5124CA1769B8DEBDD8C1BD.jvm1?message=Example%201
ormat=bmp=UTF-8=true=20=20
at
org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181)
~[xmlgraphics-commons-2.0.1.jar:2.0.1]
at
org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128)
~[xmlgraphics-commons-2.0.1.jar:2.0.1]
at
org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123)
~[xmlgraphics-commons-2.0.1.jar:2.0.1]
at org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81)
[fop-2.0.jar:?]
at org.apache.fop.fo.FObj.processNode(FObj.java:129) [fop-2.0.jar:?]
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291)
[fop-2.0.jar:?]
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179)
[fop-2.0.jar:?]
[...]
2016-05-27 14:11:36,084 |http-nio-8443-exec-7 |FOUserAgent
|E| Image not found. URI:
/example/control/qrcode;jsessionid=B15ED8C1DE5124CA1769B8DEBDD8C1BD.jvm1?message=Example%201=bmp
ncoding=UTF-8=true=20=20. (No
context info available)
2016-05-27 14:11:36,088 |http-nio-8443-exec-7 |ServerHitBin
|I| Visit delegatorName=default, ServerHitBin delegatorName=default
2016-05-27 14:11:36,099 |http-nio-8443-exec-7 |ControlServlet
|T| [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done-
total:1.131,since last([ExampleReportPdf...):1.131]]
{code}
But, as Pierre mentionned in a comment below this is already reported at
OFBIZ-7034
was:
While working on OFBIZ-7136 "Ugrade PDFBox to 1.8.12 (or 2.0.1?) due to
vulnerability" I noticed these PDF options no longer work. This was done with
OFBIZ-6504 "how to Create PDF with password Protected in Ofbiz"
I did not get any error with ExampleReportPdfOptions but a blank screen.
Here is the error in log for ExampleReportPdfBarcode
{code}
2016-05-27 14:11:35,737 |http-nio-8443-exec-7 |FOUserAgent
|E| Image not available. URI:
/example/control/qrcode;jsessionid=B15ED8C1DE5124CA1769B8DEBDD8C1BD.jvm1?message=Example%201=b
mp=UTF-8=true=20=20.
Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is
not supported. No ImagePreloader found for /examp
le/control/qrcode;jsessionid=B15ED8C1DE5124CA1769B8DEBDD8C1BD.jvm1?message=Example%201=bmp=UTF-8=true=20=20
(See position 43:308)
org.apache.xmlgraphics.image.loader.ImageException: The file format is not
supported. No ImagePreloader found for
/example/control/qrcode;jsessionid=B15ED8C1DE5124CA1769B8DEBDD8C1BD.jvm1?message=Example%201
ormat=bmp=UTF-8=true=20=20
at
org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181)
~[xmlgraphics-commons-2.0.1.jar:2.0.1]
at
org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128)
~[xmlgraphics-commons-2.0.1.jar:2.0.1]
at
org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123)
~[xmlgraphics-commons-2.0.1.jar:2.0.1]
at org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81)
[fop-2.0.jar:?]
at org.apache.fop.fo.FObj.processNode(FObj.java:129) [fop-2.0.jar:?]
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291)
[fop-2.0.jar:?]
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179)
[fop-2.0.jar:?]
[...]
2016-05-27 14:11:36,084 |http-nio-8443-exec-7 |FOUserAgent
|E| Image not found. URI:
/example/control/qrcode;jsessionid=B15ED8C1DE5124CA1769B8DEBDD8C1BD.jvm1?message=Example%201=bmp
ncoding=UTF-8=true=20=20. (No
context info available)
2016-05-27 14:11:36,088 |http-nio-8443-exec-7