Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0023137 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 00. Application dictionary | minor | always | 2013-02-21 11:32 | 2013-03-17 08:53 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 3.0MP22 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 19f62f21ac43 | ||||
Projection | none | ETA | none | Target Version | 3.0MP22 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | pi | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | shankarb | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 19692 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0023137: Report not shows images with html output format | |||||||
Description | If 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 Reproduce | 1) 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 Solution | The 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 [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|
(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 (viewer) 2013-03-17 08:53 |
Code Reviewed and tested in pi changeset c1cf111b6a22 |
![]() |
|||
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 | OBNetwork customer | => Yes |
2013-02-21 11:32 | caristu | Support ticket | => 19692 |
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 |