Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007180Openbravo ERP03. Procurement managementpublic2009-01-28 10:592009-04-21 10:54
pheenan 
pheenan 
normalmajoralways
closedfixed 
20Ubuntu 8.10
pi 
pi2.50beta 
Core
No
0007180: Requisition Order not printing
When printing a requisition an error is returned.

Following correcting these errors the report returns blank.
Log into the application
- Procurement
- Transactions
- Requisition
- Create a requisition and click the print icon in the toolbar.
No tags attached.
Issue History
2009-01-28 10:59pheenanNew Issue
2009-01-28 10:59pheenanAssigned To => pheenan
2009-01-28 10:59pheenansf_bug_id0 => 2542665
2009-01-28 10:59pheenanRegression testing => No
2009-01-28 11:31pheenanStatusnew => scheduled
2009-01-28 11:31pheenanfix_in_branch => trunk
2009-01-29 15:55svnbotCheckin
2009-01-29 15:55svnbotNote Added: 0012827
2009-01-29 15:55svnbotStatusscheduled => resolved
2009-01-29 15:55svnbotResolutionopen => fixed
2009-01-29 15:55svnbotsvn_revision => 12483
2009-02-20 11:44sureshbabuStatusresolved => new
2009-02-20 11:44sureshbabuResolutionfixed => open
2009-02-20 11:44sureshbabuNote Added: 0013816
2009-02-23 11:26pheenanNote Added: 0013906
2009-02-23 16:01svnbotCheckin
2009-02-23 16:01svnbotNote Added: 0013951
2009-02-23 16:01svnbotStatusnew => resolved
2009-02-23 16:01svnbotResolutionopen => fixed
2009-02-23 16:01svnbotsvn_revision12483 => 13538
2009-04-21 10:54psarobeStatusresolved => closed

Notes
(0012827)
svnbot   
2009-01-29 15:55   
Repository: openbravo
Revision: 12483
Author: pheenan
Date: 2009-01-29 15:55:49 +0100 (Thu, 29 Jan 2009)

Fixed 7180. Updated report in iReports. Changed parameter being passed to the subreport. Reformatted query to include spaces for correct parsing of jrxml query. Report should be ported to the new printing structure through the print controller.

---
U trunk/src/org/openbravo/erpReports/RptM_Requisition.java
U trunk/src/org/openbravo/erpReports/RptM_Requisition.jrxml
U trunk/src/org/openbravo/erpReports/RptM_Requisition_Lines.jrxml
---

https://dev.openbravo.com/websvn/openbravo/?rev=12483&sc=1 [^]
(0013816)
sureshbabu   
2009-02-20 11:44   
Still not able to print the Requisition.
(0013906)
pheenan   
2009-02-23 11:26   
This issue seems to be related to a change in the handling of pdf printing in the HttpSecureAppServlet class. The output type for this class has been changed to

reportId = UUID.randomUUID();
        saveReport(variables, jasperPrint, exportParameters, strFileName + "-" + (reportId) + "."
            + strOutputType);
        printPagePopUpDownload(os, strFileName + "-" + (reportId) + "." + strOutputType);

This means that the content type for the response is an "application/octet-stream" which may not be defined int he web.xml file of the tomcat server. If this is not defined as below then the output will not be recognised and the document will not be rendered.

Required mapping in the web.xml file of the tomcat server....

<mime-mapping>
         <extension>bin</extension>
         <mime-type>application/octet-stream</mime-type>
</mime-mapping>

This change in handling also effects the ExportGrid function which is passing through the same printPagePopUpDownload method.
(0013951)
svnbot   
2009-02-23 16:01   
Repository: openbravo
Revision: 13538
Author: pheenan
Date: 2009-02-23 16:01:13 +0100 (Mon, 23 Feb 2009)

Fixed 7180. Added line to avoid errors in mapping the output file.

---
U trunk/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=13538&sc=1 [^]