Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0023137
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 00. Application dictionaryminoralways2013-02-21 11:322013-03-17 08:53
ReportercaristuView Statuspublic 
Assigned ToAugustoMauch 
PriorityhighResolutionfixedFixed in Version3.0MP22
StatusclosedFix in branchFixed in SCM revision19f62f21ac43
ProjectionnoneETAnoneTarget Version3.0MP22
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Toshankarb
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0023137: Report not shows images with html output format

DescriptionIf we create a .jrxml with images, and configure a report in the application dictionary for showing it, the images don't appear using an html output format.
Steps To Reproduce1) Replace the ReportPurchaseOrder.jrxml from WebContent/src-loc/design/org/openbravo/erpCommon/ad_reports/ and src/org/openbravo/erpCommon/ad_reports/ with the one attached in this issue. It is the same as the original, but it has an image in the top right corner.
2)As group admin role, execute the Purchase Order Report using the pdf output format: the image is displayed correctly
3)Execute the same report using the html output format: the image is not displayed
Proposed SolutionThe html file generates the image with an invalid path: <img src="./PrintJR_files/nullimg_0_0_1" style="width: 174pt" alt="">

The html file is generated in the HttpSecureAppServlet.java, using the JRHtmlExporter class. Seems that the solution could be to use a special ImageServlet to locate the images:
http://community.jaspersoft.com/jasperreports-library/issues/2373 [^]
http://www.coderanch.com/t/466659/open-source/Jasper-reports-generating-html-files [^]
TagsNo tags attached.
Attached Files? file icon ReportPurchaseOrder.jrxml [^] (38,950 bytes) 2013-03-13 13:50

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0057235)
hgbot (developer)
2013-03-13 17:49

Repository: erp/devel/pi
Changeset: 19f62f21ac43ee3c24311130da8e2ed66b8f6b24
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 13 17:48:10 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/19f62f21ac43ee3c24311130da8e2ed66b8f6b24 [^]

Fixes issue 23137: Jasper reports show images in html output format

It was needed to use the ImageServlet servlet and to set in the session the filled jasper report in the DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE attribute.

---
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
M src/org/openbravo/erpCommon/utility/PrintJR.java
---
(0057278)
shankarb (reporter)
2013-03-17 08:53

Code Reviewed and tested in pi changeset c1cf111b6a22

- Issue History
Date Modified Username Field Change
2013-02-21 11:32 caristu New Issue
2013-02-21 11:32 caristu Assigned To => AugustoMauch
2013-02-21 11:32 caristu Modules => Core
2013-02-21 11:32 caristu Resolution time => 1367964000
2013-02-21 11:32 caristu Triggers an Emergency Pack => No
2013-02-21 11:32 caristu version => pi
2013-02-21 11:32 caristu Target Version => 3.0MP22
2013-03-13 13:50 AugustoMauch File Added: ReportPurchaseOrder.jrxml
2013-03-13 13:55 AugustoMauch Steps to Reproduce Updated View Revisions
2013-03-13 13:58 AugustoMauch Steps to Reproduce Updated View Revisions
2013-03-13 17:48 AugustoMauch Issue Monitored: shankarb
2013-03-13 17:48 AugustoMauch Review Assigned To => shankarb
2013-03-13 17:49 hgbot Checkin
2013-03-13 17:49 hgbot Note Added: 0057235
2013-03-13 17:49 hgbot Status new => resolved
2013-03-13 17:49 hgbot Resolution open => fixed
2013-03-13 17:49 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/19f62f21ac43ee3c24311130da8e2ed66b8f6b24 [^]
2013-03-17 08:53 shankarb Note Added: 0057278
2013-03-17 08:53 shankarb Status resolved => closed
2013-03-17 08:53 shankarb Fixed in Version => 3.0MP22


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker