[jira] [Commented] (OFBIZ-7137) ExampleReportPdfOptions no longer works

2017-12-26 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-7137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16303962#comment-16303962
 ] 

Jacques Le Roux commented on OFBIZ-7137:


Thanks Jinghai,

I read OFBIZ-6504 again, and tried with English rather than French and I can 
reproduce the issue even when using FF in Ubuntu in VirtualBox.
Seems like something on my machine, anyway not a big deal for me :)

> ExampleReportPdfOptions no longer works
> ---
>
> Key: OFBIZ-7137
> URL: https://issues.apache.org/jira/browse/OFBIZ-7137
> Project: OFBiz
>  Issue Type: Bug
>  Components: example
>Affects Versions: Trunk, Release Branch 15.12
>Reporter: Jacques Le Roux
>Assignee: Shi Jinghai
>Priority: Minor
> Attachments: Screen Shot 2016-05-30 at 6.39.46 PM.png, Screen Shot 
> 2016-05-30 at 6.40.09 PM.png
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OFBIZ-7137) ExampleReportPdfOptions no longer works

2017-12-26 Thread Shi Jinghai (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-7137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16303651#comment-16303651
 ] 

Shi Jinghai commented on OFBIZ-7137:


Hi Jacques,

I tested the ExampleReportPdfOptions with Chrome, both online 
(https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01)
 and local work fine.

I checked the dependencies of fop, it's org.apache.xmlgraphics:fop:2.2 in 
trunk. The methods are all same as fop 2.0.

The test steps are:

# input "Owner Password" 22, "User Password" 11, "Allow Print" false.
# click "Generate PDF" button, input password 11, click Print button in the 
page, no response.
# return to ExampleReportPdfOptions page and click "Generate PDF" button, input 
password 22, click Print button in the page, Print page popup.

BTW, in Firefox, the Print button always works no matter which password I 
input. :)

I'll check the QRCode problem in OFBIZ-7034.

Kind Regards,

> ExampleReportPdfOptions no longer works
> ---
>
> Key: OFBIZ-7137
> URL: https://issues.apache.org/jira/browse/OFBIZ-7137
> Project: OFBiz
>  Issue Type: Bug
>  Components: example
>Affects Versions: Trunk, Release Branch 15.12
>Reporter: Jacques Le Roux
>Assignee: Shi Jinghai
>Priority: Minor
> Attachments: Screen Shot 2016-05-30 at 6.39.46 PM.png, Screen Shot 
> 2016-05-30 at 6.40.09 PM.png
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OFBIZ-7137) ExampleReportPdfOptions no longer works

2017-12-18 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-7137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16294674#comment-16294674
 ] 

Jacques Le Roux commented on OFBIZ-7137:


The content of access_log. sounds good:
{code}
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/jquery/jquery-migrate-3.0.0.js HTTP/1.1" 200 14923 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/jquery/plugins/browser-plugin/jquery.browser-0.1.0.min.js HTTP/1.1" 
200 2595 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.js HTTP/1.1" 
200 11750 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/jquery/ui/jquery-ui-1.12.1.min.js HTTP/1.1" 200 253669 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-1.6.3.min.js
 HTTP/1.1" 200 41441 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/jquery/plugins/fjTimer/jquerytimer-min.js HTTP/1.1" 200 2356 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/jquery/plugins/jquery.maskedinput-1.3.1.min.js HTTP/1.1" 200 7437 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/jquery/plugins/jeditable/jquery.jeditable-1.7.3.js HTTP/1.1" 200 
24496 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/jquery/plugins/validate/jquery.validate.min.js HTTP/1.1" 200 23261 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/images/OpenLayers-2.13.1-modified-for-CSP-.js HTTP/1.1" 200 770241 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/jquery/plugins/elrte-1.3/js/elrte.min.js HTTP/1.1" 200 161811 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET /common/js/util/OfbizUtil.js 
HTTP/1.1" 200 41930 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/util/fieldlookup.js HTTP/1.1" 200 29561 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/plugins/date/date.format-1.2.3-min.js HTTP/1.1" 200 2163 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/plugins/date/date.timezone-min.js HTTP/1.1" 200 20849 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
81.14.90.183 - - [18/Dec/2017:09:07:50 +] "GET 
/common/js/util/miscAjaxFunctions.js HTTP/1.1" 200 9891 
"https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01;
 

[jira] [Commented] (OFBIZ-7137) ExampleReportPdfOptions no longer works

2017-12-18 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-7137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16294672#comment-16294672
 ] 

Jacques Le Roux commented on OFBIZ-7137:


I checked today and it does not work on trunk demo as well.
https://demo-trunk.ofbiz.apache.org/example/control/ExampleReportPdfOptions?exampleId=EX01
Nothing appears, I don't see anything in logs too

> ExampleReportPdfOptions no longer works
> ---
>
> Key: OFBIZ-7137
> URL: https://issues.apache.org/jira/browse/OFBIZ-7137
> Project: OFBiz
>  Issue Type: Bug
>  Components: example
>Affects Versions: Trunk, Release Branch 15.12
>Reporter: Jacques Le Roux
>Priority: Minor
> Attachments: Screen Shot 2016-05-30 at 6.39.46 PM.png, Screen Shot 
> 2016-05-30 at 6.40.09 PM.png
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)