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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0014705
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementminoralways2010-09-27 12:232010-12-16 22:16
ReporterpjuvaraView Statuspublic 
Assigned Toadrianromero 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision9e30454d56c4
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version2.50MP20SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0014705: Unable to print documents when accessing the system through localhost

DescriptionWhen 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. [^]
Steps To Reproduce1) 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

Proposed SolutionBecause 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.
TagsNo tags attached.
Attached Filespng file icon Screenshot-14.png [^] (37,632 bytes) 2010-09-27 12:23

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00146252.50MP23 closedadrianromero It is not possible to see an image in a report using $P{BASE_WEB}+"/../utility/ShowImage?id=IMAGEID" 

-  Notes
(0031495)
hgbot (developer)
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 (developer)
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 (developer)
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 (manager)
2010-09-30 11:41

See Steps to test and other areas affected note of the related issue 14625
(0031704)
hudsonbot (developer)
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 (developer)
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 (developer)
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 (manager)
2010-12-14 18:32

We cannot setup the conditions so we cannot reproduce it

- Issue History
Date Modified Username Field Change
2010-09-27 12:23 pjuvara New Issue
2010-09-27 12:23 pjuvara Assigned To => adrianromero
2010-09-27 12:23 pjuvara File Added: Screenshot-14.png
2010-09-27 12:25 pjuvara Assigned To adrianromero => ioritzCia
2010-09-27 12:59 adrianromero Relationship added related to 0014625
2010-09-27 13:54 adrianromero Assigned To ioritzCia => adrianromero
2010-09-30 11:25 hgbot Checkin
2010-09-30 11:25 hgbot Note Added: 0031495
2010-09-30 11:25 hgbot Status new => resolved
2010-09-30 11:25 hgbot Resolution open => fixed
2010-09-30 11:25 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/079e136502c9b31127c049383cc8c3b3bb56bf40 [^]
2010-09-30 11:26 hgbot Checkin
2010-09-30 11:26 hgbot Note Added: 0031497
2010-09-30 11:26 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/079e136502c9b31127c049383cc8c3b3bb56bf40 [^] => http://code.openbravo.com/erp/devel/pi/rev/f526d232f792c4f0c5ca2618feef92e602cb091d [^]
2010-09-30 11:26 hgbot Checkin
2010-09-30 11:26 hgbot Note Added: 0031499
2010-09-30 11:26 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/f526d232f792c4f0c5ca2618feef92e602cb091d [^] => http://code.openbravo.com/erp/devel/pi/rev/9e30454d56c459200018339b7d4909705494f89c [^]
2010-09-30 11:41 adrianromero Note Added: 0031506
2010-10-08 20:59 hudsonbot Checkin
2010-10-08 20:59 hudsonbot Note Added: 0031704
2010-10-08 20:59 hudsonbot Checkin
2010-10-08 20:59 hudsonbot Note Added: 0031706
2010-10-08 20:59 hudsonbot Checkin
2010-10-08 20:59 hudsonbot Note Added: 0031708
2010-12-14 18:32 psarobe Note Added: 0033182
2010-12-14 18:32 psarobe Status resolved => closed
2010-12-16 22:16 anonymous sf_bug_id 0 => 3138784


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker