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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016267
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] B. User interfacemajoralways2011-03-14 14:332011-04-09 00:00
ReportereintelauView Statuspublic 
Assigned Toiperdomo 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revisiond4d323769d43
ProjectionnoneETAnoneTarget Version3.0RC6
OSAnyDatabasePostgreSQLJava version
OS VersionDatabase version9Ant version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0016267: Action buttons don't work in new UI when app is running in root context

DescriptionIf 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.

Steps To Reproduce1) Install Openbravo in root context
2) Try to do any operation using action button
   e.g. complete invoice
Proposed SolutionThe 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.
TagsNo tags attached.
Attached Files? file icon 16267 [^] (3,273 bytes) 2011-03-14 14:36 [Show Content]
patch file icon 16267v2.patch [^] (13,793 bytes) 2011-03-16 14:12 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0034918)
eintelau (developer)
2011-03-16 03:49

Also the Location/Address selector doesn't work for a similar reason
(0034942)
eintelau (developer)
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 (developer)
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
---

- Issue History
Date Modified Username Field Change
2011-03-14 14:33 eintelau New Issue
2011-03-14 14:33 eintelau Assigned To => dbaz
2011-03-14 14:33 eintelau Modules => Core
2011-03-14 14:36 eintelau File Added: 16267
2011-03-15 11:05 dbaz Priority normal => urgent
2011-03-15 11:05 dbaz Severity major => critical
2011-03-15 11:05 dbaz Assigned To dbaz => mtaal
2011-03-16 03:49 eintelau Note Added: 0034918
2011-03-16 08:16 alostale Severity critical => major
2011-03-16 08:17 alostale Target Version => 3.0RC6
2011-03-16 08:17 alostale Status new => scheduled
2011-03-16 08:17 alostale fix_in_branch => pi
2011-03-16 14:12 eintelau Note Added: 0034942
2011-03-16 14:12 eintelau File Added: 16267v2.patch
2011-04-01 11:48 iperdomo Assigned To mtaal => iperdomo
2011-04-04 12:43 hgbot Checkin
2011-04-04 12:43 hgbot Note Added: 0035532
2011-04-04 12:43 hgbot Status scheduled => resolved
2011-04-04 12:43 hgbot Resolution open => fixed
2011-04-04 12:43 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d4d323769d43867fc4c60b5711809454934ee7cc [^]
2011-04-08 15:12 marvintm Status resolved => closed
2011-04-09 00:00 anonymous sf_bug_id 0 => 3281268


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker