Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014705Openbravo ERP07. Sales managementpublic2010-09-27 12:232010-12-16 22:16
pjuvara 
adrianromero 
normalminoralways
closedfixed 
5
2.50MP20 
 
Core
No
0014705: Unable to print documents when accessing the system through localhost
When installing the Community Appliance with VirtualBox and using NAT networking (following instructions at http://wiki.openbravo.com/wiki/ERP/2.50/Openbravo_ERP_Installation/Community_Appliance#VirtualBox_appliance_2 [^]), you cannot print documents (invoices, sales orders, etc.) if you access the system using http://localhost:XXXX. [^]
1) Download a VirtualBox Community Appliance 2.50 MP20 or above (you need logos in the reports, available from 2.50 MP20)
2) Configure VirtualBox using NAT networking and setup port forwarding on the host machine
3) Open a browser on the host and login to http://localhost:XXXX [^] where XXXX is the port that forwards to the VirtualBox guest.
4) Using BigBazaar Admin role, open a sales invoice and press the Print Icon.
5) Acknowledge the Print Details dialog by pressing one of the two buttons.
6) You will get an error: Unable to process your report request
See attachment.

Please notice that the error does not reproduce if:
A) You access Openbravo using the IP address of the host (http://123.456.789.123:XXXX [^]) instead of localhost
or
B) You configure your document types not to include the logo

Because this problem happens at the intersection between IP address configuration and image retrieving, it looks like we are not passing the URL properly to JasperReports and Jasper is not able to find the image at the right URI.
No tags attached.
related to defect 00146252.50MP23 closed adrianromero It is not possible to see an image in a report using $P{BASE_WEB}+"/../utility/ShowImage?id=IMAGEID" 
png Screenshot-14.png (37,632) 2010-09-27 12:23
https://issues.openbravo.com/file_download.php?file_id=3126&type=bug
png
Issue History
2010-09-27 12:23pjuvaraNew Issue
2010-09-27 12:23pjuvaraAssigned To => adrianromero
2010-09-27 12:23pjuvaraFile Added: Screenshot-14.png
2010-09-27 12:25pjuvaraAssigned Toadrianromero => ioritzCia
2010-09-27 12:59adrianromeroRelationship addedrelated to 0014625
2010-09-27 13:54adrianromeroAssigned ToioritzCia => adrianromero
2010-09-30 11:25hgbotCheckin
2010-09-30 11:25hgbotNote Added: 0031495
2010-09-30 11:25hgbotStatusnew => resolved
2010-09-30 11:25hgbotResolutionopen => fixed
2010-09-30 11:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/079e136502c9b31127c049383cc8c3b3bb56bf40 [^]
2010-09-30 11:26hgbotCheckin
2010-09-30 11:26hgbotNote Added: 0031497
2010-09-30 11:26hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/079e136502c9b31127c049383cc8c3b3bb56bf40 [^] => http://code.openbravo.com/erp/devel/pi/rev/f526d232f792c4f0c5ca2618feef92e602cb091d [^]
2010-09-30 11:26hgbotCheckin
2010-09-30 11:26hgbotNote Added: 0031499
2010-09-30 11:26hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/f526d232f792c4f0c5ca2618feef92e602cb091d [^] => http://code.openbravo.com/erp/devel/pi/rev/9e30454d56c459200018339b7d4909705494f89c [^]
2010-09-30 11:41adrianromeroNote Added: 0031506
2010-10-08 20:59hudsonbotCheckin
2010-10-08 20:59hudsonbotNote Added: 0031704
2010-10-08 20:59hudsonbotCheckin
2010-10-08 20:59hudsonbotNote Added: 0031706
2010-10-08 20:59hudsonbotCheckin
2010-10-08 20:59hudsonbotNote Added: 0031708
2010-12-14 18:32psarobeNote Added: 0033182
2010-12-14 18:32psarobeStatusresolved => closed
2010-12-16 22:16anonymoussf_bug_id0 => 3138784

Notes
(0031495)
hgbot   
2010-09-30 11:25   
Repository: erp/devel/pi
Changeset: 079e136502c9b31127c049383cc8c3b3bb56bf40
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Sep 29 10:39:06 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/079e136502c9b31127c049383cc8c3b3bb56bf40 [^]

Fixes issue 0014625: It is not possible to see an image in a report using {BASE_WEB}+/../utility/ShowImage?id=IMAGEID
Fixes issue 0014705: Unable to print documents when accessing the system through localhost
It has been changed the way to include images in Jasper Reports adding an utility that includes directly an image without accessing to an URL

---
M src/org/openbravo/erpCommon/utility/ShowImage.java
M src/org/openbravo/erpCommon/utility/ShowImageLogo.java
M src/org/openbravo/erpCommon/utility/Utility.java
---
(0031497)
hgbot   
2010-09-30 11:26   
Repository: erp/devel/pi
Changeset: f526d232f792c4f0c5ca2618feef92e602cb091d
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Sep 29 10:40:35 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f526d232f792c4f0c5ca2618feef92e602cb091d [^]

Fixes issue 0014625: It is not possible to see an image in a report using {BASE_WEB}+/../utility/ShowImage?id=IMAGEID
Fixes issue 0014705: Unable to print documents when accessing the system through localhost
It has been modified the required Jasper Reports to include images using the new way to include images without using an URL

---
M src/org/openbravo/erpReports/C_OrderJR.jrxml
M src/org/openbravo/erpReports/RptC_Invoice.jrxml
M src/org/openbravo/erpReports/RptC_OrderPO.jrxml
M src/org/openbravo/erpReports/RptM_InOut.jrxml
---
(0031499)
hgbot   
2010-09-30 11:26   
Repository: erp/devel/pi
Changeset: 9e30454d56c459200018339b7d4909705494f89c
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Sep 29 12:08:23 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9e30454d56c459200018339b7d4909705494f89c [^]

Fixes issue 0014625: It is not possible to see an image in a report using {BASE_WEB}+/../utility/ShowImage?id=IMAGEID
Fixes issue 0014705: Unable to print documents when accessing the system through localhost
Shipments report had an small issue that has been fixed in the reference to the Organization id parameter

---
M src/org/openbravo/erpReports/RptM_InOut.jrxml
---
(0031506)
adrianromero   
2010-09-30 11:41   
See Steps to test and other areas affected note of the related issue 14625
(0031704)
hudsonbot   
2010-10-08 20:59   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/079e136502c9 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/f476e192559f [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18505.obx [^]
(0031706)
hudsonbot   
2010-10-08 20:59   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/f526d232f792 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/f476e192559f [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18505.obx [^]
(0031708)
hudsonbot   
2010-10-08 20:59   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/9e30454d56c4 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/f476e192559f [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18505.obx [^]
(0033182)
psarobe   
2010-12-14 18:32   
We cannot setup the conditions so we cannot reproduce it