Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0013712 | Openbravo ERP | A. Platform | public | 2010-06-21 18:43 | 2011-11-17 10:30 |
|
Reporter | shuehner | |
Assigned To | iperdomo | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | out of date | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0013712: DirectLinking has race condition between opened window and the menuFrame content. |
Description | Using direct linking both some window/tab and the menu are loaded at the same time. As all windows have a data dependency on data inside the menuFrame (i.e. all data coming from DynamicJS) this opens a race-condition, making the opened window fails if its request finished before finishing the menu-load.
Because of the nature of a race condition this failure case only happens somtimes....
Easy way to get it to reprodce always is to change VerticalMenu.java and add a 2s sleep time via Thread.sleep to the menuFrame processing to make it much slower. |
Steps To Reproduce | I.e. follow steps in support ticket8143..
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0014160 | | closed | dbaz | "arrMessages is undefined" error when openning a window | related to | defect | 0014566 | | closed | mtaal | 3.0RC2: In manual window in a randomly basis the content of the window is empty |
|
Attached Files | VerticalMenu.java.diff (570) 2010-08-12 11:18 https://issues.openbravo.com/file_download.php?file_id=2843&type=bug
messages.js.diff (373) 2010-08-12 11:28 https://issues.openbravo.com/file_download.php?file_id=2845&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2010-06-21 18:43 | shuehner | New Issue | |
2010-06-21 18:43 | shuehner | Assigned To | => alostale |
2010-06-21 18:43 | shuehner | OBNetwork customer | => No |
2010-06-21 18:49 | shuehner | Note Added: 0028636 | |
2010-06-21 19:00 | iciordia | Status | new => acknowledged |
2010-06-21 19:00 | iciordia | Assigned To | alostale => iperdomo |
2010-06-21 19:00 | iciordia | Status | acknowledged => scheduled |
2010-06-21 19:00 | iciordia | fix_in_branch | => pi |
2010-08-12 11:05 | iperdomo | Relationship added | related to 0014160 |
2010-08-12 11:18 | iperdomo | File Added: VerticalMenu.java.diff | |
2010-08-12 11:19 | iperdomo | Note Added: 0029908 | |
2010-08-12 11:28 | iperdomo | File Added: messages.js.diff | |
2010-08-16 09:15 | iperdomo | Note Added: 0029978 | |
2010-08-16 09:15 | iperdomo | Status | scheduled => closed |
2010-08-16 09:15 | iperdomo | Resolution | open => no change required |
2010-08-16 17:55 | iperdomo | Note Added: 0030028 | |
2010-08-16 17:55 | iperdomo | Status | closed => new |
2010-08-16 17:55 | iperdomo | Resolution | no change required => open |
2010-08-16 18:40 | iperdomo | Status | new => scheduled |
2010-09-15 17:33 | shuehner | Relationship added | related to 0014566 |
2011-11-17 10:30 | iperdomo | Note Added: 0042911 | |
2011-11-17 10:30 | iperdomo | Status | scheduled => closed |
2011-11-17 10:30 | iperdomo | Resolution | open => out of date |
Notes |
|
|
Note this only applies to usage of DirectLinking, as normal erp usage never opens a window/tab at the same time with a menu. So its garanteed that the menuFrame is always present before/when opening a window. |
|
|
|
As shuener mentioned, the easiest way to reproduce the issue is a sleep in the Menu generation. Attached a simple .diff |
|
|
|
The fix was applied in issue 0014160 |
|
|
|
Reopened as we'll try to synchronize the loading of the application. Note: This will add a bit of latency.
The idea is when doing deep-linking, store the source of the application frame, and on the 'onload' event of the Menu, set the location of the right frame. With this strategy we synchronize the loading of the application. The Menu will always be available for the right frame. |
|
|
|
The race condition has not been reported in any 2.50 production system. The support ticked mentioned here was closed several months ago.
In Openbravo 3, the direct-link is a totally different component and doesn't rely on the Menu.html servlet. |
|