Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0001261Openbravo ERPZ. Otherspublic2007-06-07 13:182008-06-13 19:13
plujan 
dbaz 
normalminoralways
closedfixed 
5
 
pi 
No
Core
No
0001261: Ajax error messages using localhost instead of 127.0.0.1
Description:
If I use openbravo in http://localhost:8080/openbravo [^] all functionallity except Relation Grid works fine. See http://sourceforge.net/tracker/index.php?func=detail&aid=1732520&group_id=162271&atid=823129 [^]

Enviroment:
OS: Windows XP SP2
DB: Oracle
Browser: FF2
Openbravo: 2.30 Alpha
Language: English

Steps:
1. Use http://localhost:8080/openbravo [^]
2. Go to any relation
3. The error pops up. Look source code, the ajax library seeks on 127.0.0.1:8080
4. Use http://127.0.0.1:8080 [^]
5. Go to any relation
6. The grid works fine

Additional Data:
The HOSTS file has "127.0.0.1 localhost" alias
No tags attached.
Issue History
2008-06-13 19:13cromeroStatusnew => closed
2008-06-13 19:13cromeroNote Added: 0007706
2008-06-13 19:13cromeroResolutionopen => out of date

Notes
(0004850)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1732711 [^]
(0001168)
plujan   
2007-06-13 03:07   
(edited on: 2008-06-12 09:18)
Logged In: YES
user_id=1759992
Originator: YES

I found that the calculator pop ups fails too. If I enter "localhost", the calculator pop up is fetched from 127.0.0.1 (see attach), and when selecting a number, the editing windows go blank. The only way to restore the blank window is to close session.
This behavior rises bug priority (process aborting in major functionallity)
File Added: UsingCalculator.GIF
(0001169)
user71   
2007-06-13 16:53   
(edited on: 2008-06-12 09:18)
Logged In: YES
user_id=1500724
Originator: NO

This a dojo problem. The javascript user by the application, the dojo javascript, has some problems when you use a different ip to connect than the defined as replace url.
(0001170)
plujan   
2007-06-29 05:03   
(edited on: 2008-06-12 09:18)
Logged In: YES
user_id=1759992
Originator: YES

>
> This a dojo problem. The javascript user by the application, the dojo
> javascript, has some problems when you use a different ip to connect than
> the defined as replace url.

Sorry, this response has no sense for me. I did not use a different IP, I choose 127.0.0.1 and localhost, which are basically the same. Why this do not works on OpenbravoERP?
(0001171)
user71   
2007-07-02 18:28   
(edited on: 2008-06-12 09:18)
Logged In: YES
user_id=1500724
Originator: NO

This is not an erp's problem. All of them are subprojects and we must refer to their respectives urls:

http://www.awebscripts.net/products/tigra_calculator/ [^]

http://dojotoolkit.org/ [^]

Anyway, as you mentioned, there is a work around over the problem, so the priority it was incorrect
(0001172)
plujan   
2007-09-04 11:52   
(edited on: 2008-06-12 09:18)
Logged In: YES
user_id=1759992
Originator: YES

I change the priority to 3 because the new installer has a good workaround for this issue. The issue will remain Open until a real solution is founded, but there is not a critical issue now.
(0007706)
cromero   
2008-06-13 19:13   
This bug is out of date since the using of the actual_context variable.