Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016267Openbravo ERPB. User interfacepublic2011-03-14 14:332011-04-09 00:00
eintelau 
iperdomo 
urgentmajoralways
closedfixed 
5
pi 
3.0RC6 
Core
No
0016267: Action buttons don't work in new UI when app is running in root context
If Openbravo is running in the root context (e.g accessed via http://myopenbravo.com/ [^]), then the action buttons in the toolbar do not work properly.

1) Install Openbravo in root context
2) Try to do any operation using action button
   e.g. complete invoice
The issue is caused by a couple of things.
a) Relative urls being used which start with a //. These type of urls only reused the scheme part of the current location (http:) and drop the server part
b) Assumptions in the code the path the app is running under is not "/"

Patch attached to fix the issues for the action button popups, but more review may be needed.
No tags attached.
? 16267 (3,273) 2011-03-14 14:36
https://issues.openbravo.com/file_download.php?file_id=3671&type=bug
patch 16267v2.patch (13,793) 2011-03-16 14:12
https://issues.openbravo.com/file_download.php?file_id=3698&type=bug
Issue History
2011-03-14 14:33eintelauNew Issue
2011-03-14 14:33eintelauAssigned To => dbaz
2011-03-14 14:33eintelauModules => Core
2011-03-14 14:36eintelauFile Added: 16267
2011-03-15 11:05dbazPrioritynormal => urgent
2011-03-15 11:05dbazSeveritymajor => critical
2011-03-15 11:05dbazAssigned Todbaz => mtaal
2011-03-16 03:49eintelauNote Added: 0034918
2011-03-16 08:16alostaleSeveritycritical => major
2011-03-16 08:17alostaleTarget Version => 3.0RC6
2011-03-16 08:17alostaleStatusnew => scheduled
2011-03-16 08:17alostalefix_in_branch => pi
2011-03-16 14:12eintelauNote Added: 0034942
2011-03-16 14:12eintelauFile Added: 16267v2.patch
2011-04-01 11:48iperdomoAssigned Tomtaal => iperdomo
2011-04-04 12:43hgbotCheckin
2011-04-04 12:43hgbotNote Added: 0035532
2011-04-04 12:43hgbotStatusscheduled => resolved
2011-04-04 12:43hgbotResolutionopen => fixed
2011-04-04 12:43hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d4d323769d43867fc4c60b5711809454934ee7cc [^]
2011-04-08 15:12marvintmStatusresolved => closed
2011-04-09 00:00anonymoussf_bug_id0 => 3281268

Notes
(0034918)
eintelau   
2011-03-16 03:49   
Also the Location/Address selector doesn't work for a similar reason
(0034942)
eintelau   
2011-03-16 14:12   
I have attached a second patch that fixes the same problem with the Location / Address selector. I think the v2 patch should catch all the instance of this problem that can occur
(0035532)
hgbot   
2011-04-04 12:43   
Repository: erp/devel/pi
Changeset: d4d323769d43867fc4c60b5711809454934ee7cc
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Mon Apr 04 12:42:30 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d4d323769d43867fc4c60b5711809454934ee7cc [^]

Fixes issue 16267: Solved issue when serving the application from root (/)
- Initial patch provided Ben Sommerville (eintelau)
- Use the applicationUrl() function when the URL is not known
- Fixes the mapping of known URLs removing the initial slash (/)

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/layout.js.ftl
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-classic-popup.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-help-about-widget.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-toolbar.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
---