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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0006297
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] B. User interfaceminoralways2008-12-01 13:162009-01-30 09:53
ReporternetworkbView Statuspublic 
Assigned Tonetworkb 
PriorityimmediateResolutionout of dateFixed in Version
StatusclosedFix in branchpiFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseOracleJava version
OS VersionDatabase versionAnt version
Product Version2.35MP9SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0006297: After configure the application with the machine name, if you acced with the IP address the reports with images does not work

DescriptionAfter configure the application with the machine name, if you acced with the IP address the reports with images does not work

The error you get is the following:

Error:
Error loading byte data : http://<<IP_ADDRESS>>/openbravo/web/images/logo_albaran.jpg [^]
Steps To Reproduce1-Configure Openbravo ERP with the name of the machine
2-Acced to the aplicatio with the ip address instead of using the server name
3-Execute a report that contains an image
4-The report is not loaded because an error when try to load the image.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0010864)
pheenan (reporter)
2008-12-02 10:20

Validating issue.
(0010872)
pheenan (reporter)
2008-12-02 11:16

There is a possible work around for this with configuring reports to not 'fail' when a report is unable to load an image successfully.

Phil
(0011220)
pheenan (reporter)
2008-12-12 09:31

Changing the onErrorType value for the image to "Blank" will only produce a blank page. We can change to "Icon" which will return a default jasper icon.
(0011508)
pheenan (reporter)
2008-12-18 10:19

I have just tested this again in both Tecnicia14 and my local system and the Purchase Order report generated correctly.

http://192.168.102.114/openbravo-branch-r2.3x_oracle_demo [^]
and
http://tecnicia14/openbravo-branch-r2.3x_oracle_demo [^]

I both cases the Purchase Order report generated correctly.
(0011524)
pheenan (reporter)
2008-12-18 15:37

Awaiting confirmation of the issue. Tried to reproduce and purchase order report is working with both the ipaddress and the machine name.
(0011575)
networkb (developer)
2008-12-19 10:58

Customer environment access has been given to the developer (pheenan) to test it
(0011689)
pjuvara (reporter)
2008-12-23 07:56

networkb: please remember to change the status from Feedback to New when you have provided the requested information.
(0011691)
pheenan (reporter)
2008-12-23 10:14

Have received an environment for testing this issue but awaiting information on whether it is possible to create test data for this.
(0011705)
dbaz (developer)
2008-12-23 14:02

Please ensure that in
Openbravo.properties
the following lines are exactly like

context.url=@actual_url_context@
web.url=@actual_url_context@/web

if not change them, compile, and try again.
(0011834)
networkb (developer)
2009-01-02 09:50

The version we are using is 2.35 so we have modify the build.xml instead of modifying the Openbravo.properties, but we get the same error when printing reports with images. The image can not be loaded.
(0011855)
pnuding (reporter)
2009-01-02 13:32

Phil, back to you, please have a look when you're back
(0011856)
dbaz (developer)
2009-01-02 13:45

Another clue. If it is 2.35 try to change in build.xml

<property name="context.url" value="http://localhost:8880/openbravo"/> [^]

with this

<property name="context.url" value="@actual_url_context@"/>

if it doesn't work I don't have any other idea... sorry
(0011899)
rafaroda (developer)
2009-01-03 19:51

Feedback is required with the change suggested by dbaz.
(0012066)
networkb (developer)
2009-01-09 18:22

Phil is testing the change suggested
(0012067)
networkb (developer)
2009-01-09 18:24

Tests have failed. Phil is installing the same application in local
(0012110)
pheenan (reporter)
2009-01-12 14:20

After viewing the logs for the test system the actual issue is not in locating the file but the way the file is being displayed.

When using http://212.145.140.171/openbravo/web/images/logo_albaran.jpg [^] the image is returned correctly.

In the logs the error is Error captured: javax.servlet.ServletException: Error loading byte data : http://212.145.140.171/openbravo/web/images/CompanyLogo_big.png [^]

This error points towards a problem with the image file or the passing of the image file to the report.

Investigating this now.
(0012114)
pheenan (reporter)
2009-01-12 15:28

After investigation it looks like this issue is caused by a customisation to the standard jasper report implementation. Asking the reporter for feedback on this.
(0012168)
networkb (developer)
2009-01-14 13:11

Some tests have been done and we found in Openbravo MP9 does not work as well.
So it does not matter the method used to create the Jasper Report.

In MP9 does not work (so it is supposed that it is an OBN bug), but in branch 2.3x, yes.
(0012238)
pheenan (reporter)
2009-01-15 18:05

Have applied a change to the path to find the image files. This change has been applied to the test system provided by 2nd level support and is currently being tested by them to verify the fix.

If this is confirmed the patch can be applied to the appropriate branches for 2.35, 2.40, and trunk.
(0012286)
pheenan (reporter)
2009-01-19 00:01

Fix is not consistent with the design aims of the web.url attribute in the Openbravo.properties file.

The correct resolution for this problem is to resolve the ip address to the server name. The base of the issue is that the server is not able to resolve it's own ip address when looking for the image file.

Will investigate redirecting a URL with the ip address to the server name for that server.
(0012362)
pheenan (reporter)
2009-01-19 17:28

A new fix has been applied to the test system that redirects a request sent with the ipaddress to the actual server name. An email has been sent to all parties regarding whether this fix is suitable for the application and depending on the response from this email the fix will either be committed or discarded.
(0012467)
pheenan (reporter)
2009-01-21 17:43

The fix for this issue lies in configuration of the server and network. No patch will be created for this in the Openbravo ERP application.
(0012470)
pheenan (reporter)
2009-01-21 17:59

When checking in the demo application this bug is not replicable.

http://75.101.167.196/openbravo/security/Menu.html [^]

or

http://demo3.openbravo.com/openbravo/security/Menu.html [^]

In both instances the purchase order displays the CompanyLogo image correctly.

Therefore this issue lies in the configuration of the network in which the server is running. The server needs to be able to resolve it's own external ip address not just by it's name.
(0012472)
pheenan (reporter)
2009-01-21 18:01

Please check the network configuration for this server to ensure that it is able to 'loopback' which will allow it to resolve it's external ip address.
(0012726)
pheenan (reporter)
2009-01-28 12:25

To enable IP Loopback access the router settings and switch on or enable "IP NAT loopback".

You can test if this is successful by using the following command

wget http://[Openbravo [^] web context]/web/images/CompanyLogo_big.png

In the [Openbravo web context] use both the server name and the ip address. The IP Address should be the external IP address for the server.

Following IP Nat Loopback being enabled this process should return the image for both the server name and the external ip address.
(0012869)
pnuding (reporter)
2009-01-30 09:53

No code change required, therefore closed as discussed in OBN status meeting this morning

- Issue History
Date Modified Username Field Change
2008-12-01 13:16 networkb New Issue
2008-12-01 13:16 networkb Assigned To => rafaroda
2008-12-01 13:16 networkb sf_bug_id 0 => 2370769
2008-12-01 13:16 networkb Regression testing => No
2008-12-02 01:21 pnuding Assigned To rafaroda => pheenan
2008-12-02 10:20 pheenan Status new => scheduled
2008-12-02 10:20 pheenan Note Added: 0010864
2008-12-02 10:20 pheenan fix_in_branch => trunk
2008-12-02 11:16 pheenan Note Added: 0010872
2008-12-12 09:31 pheenan Note Added: 0011220
2008-12-18 10:19 pheenan Note Added: 0011508
2008-12-18 15:37 pheenan Note Added: 0011524
2008-12-18 15:37 pheenan Status scheduled => feedback
2008-12-19 10:58 networkb Note Added: 0011575
2008-12-23 07:56 pjuvara Note Added: 0011689
2008-12-23 07:56 pjuvara Status feedback => new
2008-12-23 10:14 pheenan Note Added: 0011691
2008-12-23 10:51 pheenan Assigned To pheenan => networkb
2008-12-23 10:51 pheenan Status new => feedback
2008-12-23 14:02 dbaz Note Added: 0011705
2009-01-02 09:50 networkb Note Added: 0011834
2009-01-02 09:51 networkb Status feedback => new
2009-01-02 09:51 networkb fix_in_branch trunk =>
2009-01-02 13:32 pnuding Note Added: 0011855
2009-01-02 13:32 pnuding Assigned To networkb => pheenan
2009-01-02 13:45 dbaz Note Added: 0011856
2009-01-03 19:51 rafaroda Note Added: 0011899
2009-01-03 19:51 rafaroda Status new => feedback
2009-01-09 18:22 networkb Note Added: 0012066
2009-01-09 18:23 networkb Status feedback => new
2009-01-09 18:24 networkb Note Added: 0012067
2009-01-12 14:20 pheenan Note Added: 0012110
2009-01-12 15:27 pheenan Assigned To pheenan => networkb
2009-01-12 15:28 pheenan Note Added: 0012114
2009-01-12 15:28 pheenan Status new => feedback
2009-01-14 13:11 networkb Note Added: 0012168
2009-01-14 13:11 networkb Status feedback => new
2009-01-14 14:51 rafaroda Assigned To networkb => pheenan
2009-01-15 18:05 pheenan Status new => scheduled
2009-01-15 18:05 pheenan Note Added: 0012238
2009-01-15 18:05 pheenan fix_in_branch => trunk
2009-01-19 00:01 pheenan Note Added: 0012286
2009-01-19 00:01 pheenan Status scheduled => acknowledged
2009-01-19 00:01 pheenan Status acknowledged => scheduled
2009-01-19 17:28 pheenan Note Added: 0012362
2009-01-21 17:43 pheenan Note Added: 0012467
2009-01-21 17:59 pheenan Note Added: 0012470
2009-01-21 18:00 pheenan Assigned To pheenan => networkb
2009-01-21 18:01 pheenan Note Added: 0012472
2009-01-21 18:01 pheenan Status scheduled => feedback
2009-01-28 12:25 pheenan Note Added: 0012726
2009-01-30 09:53 pnuding Status feedback => closed
2009-01-30 09:53 pnuding Note Added: 0012869
2009-01-30 09:53 pnuding Resolution open => out of date


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker