[
https://issues.apache.org/jira/browse/OFBIZ-6639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15341155#comment-15341155
]
Rohit Koushal edited comment on OFBIZ-6639 at 6/21/16 6:03 AM:
---------------------------------------------------------------
The error is due to the browser problem. Some browser like Chrome and Chromium
fire 2 request for PDF download in which one request contain the desired
parameter and another request does not contain any parameter. Hence in some
PDF document(*.rptdesign) some parameters are mandatory due to which BIRT
engine throw exception.
Here are some refrence link about it.
[Do most browsers make multiple HTTP Requests when displaying a PDF from within
the
browser|http://stackoverflow.com/questions/1817750/do-most-browsers-make-multiple-http-requests-when-displaying-a-pdf-from-within-t]
[Chrome sends two requests when downloading a
PDF|http://stackoverflow.com/questions/32725608/chrome-sends-two-requests-when-downloading-a-pdf-and-cancels-one-of-them]
[Why does chrome do 2 requests for a pdf
file|http://stackoverflow.com/questions/33419721/why-does-chrome-do-2-requests-for-a-pdf-file]
was (Author: rohit.koushal):
The error is due to the browser problem. Some browser like Chrome and Chromium
fire 2 request for PDF download in which one request contain the desired
parameter and another request does not contain any parameter. Hence in some
PDF document some parameters are mandatory due to which BIRT engine throw
exception.
Here are some refrence link about it.
[Do most browsers make multiple HTTP Requests when displaying a PDF from within
the
browser|http://stackoverflow.com/questions/1817750/do-most-browsers-make-multiple-http-requests-when-displaying-a-pdf-from-within-t]
[Chrome sends two requests when downloading a
PDF|http://stackoverflow.com/questions/32725608/chrome-sends-two-requests-when-downloading-a-pdf-and-cancels-one-of-them]
[Why does chrome do 2 requests for a pdf
file|http://stackoverflow.com/questions/33419721/why-does-chrome-do-2-requests-for-a-pdf-file]
> Birt issues in accounting reports
> ---------------------------------
>
> Key: OFBIZ-6639
> URL: https://issues.apache.org/jira/browse/OFBIZ-6639
> Project: OFBiz
> Issue Type: Bug
> Components: accounting, specialpurpose/birt
> Reporter: Jacques Le Roux
> Assignee: Rohit Koushal
>
> The followings are Birt issues
> https://ofbiz-vm.apache.org:8443/accounting/control/IncomeStatement?organizationPartyId=Company
> (PFD export)
> https://ofbiz-vm.apache.org:8443/accounting/control/BalanceSheet?organizationPartyId=Company
> (PFD export)
> https://ofbiz-vm.apache.org:8443/accounting/control/TrialBalance?organizationPartyId=Company
> (PDF export)
> They work in stable demo, there is no Birt there
> http://demo-stable-ofbiz.apache.org/accounting/control/IncomeStatement?organizationPartyId=Company
> (PFD export)
> http://demo-stable-ofbiz.apache.org/accounting/control/BalanceSheet?organizationPartyId=Company
> (PFD export)
> Here is Arun's comment about that
> {quote}
> There are some report forms with hyper-link that are throwing error in pdf
> export. We will have to find a way to use these form in both process ie
> report rendering and pdf export
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)