Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0057994 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | major | always | 2025-02-14 12:05 | 2025-02-19 12:40 | |||
Reporter | egoitz | View Status | public | |||||
Assigned To | Triage Platform Base | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | PR24Q4.1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | PR24Q4.2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0057994: Massive import of elements that updated the tree do not allow login into the application | |||||||
Description | Having thousands of elements in the import entry queue in initial adding or updating in the treenode, causes a error during the login that does not allow to login. If the import entry is adding entries in the treenode to define, for example a bueinss partner tree estructure a handler is executed. MenuCacheHandler https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/blob/master/modules/org.openbravo.client.application/src/org/openbravo/client/application/event/MenuCacheHandler.java [^] This handler executes this method: menu.invalidateCache(); for the menu that is a GlobalMenu object: @Inject private GlobalMenu menu; The GlobalMenu.java is used during the login to build the menu. If during the execution the previous hanlder is executed the menu is invalidated. https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/blob/master/modules/org.openbravo.client.application/src/org/openbravo/client/application/GlobalMenu.java#L86 [^] If the hanlder is executed while the login is doing an action between the line 86 and line 95, you are not able to login. This is very common having thousand on entries processing very fast. Use case: There is a customization in the customer that when creating a business partner, add a entry on the ad_treenode for a custom tree, to define a tree structure for the partners. | |||||||
Steps To Reproduce | -Create a import entry process that update the tree - Add thousand of entries of that type in initial - While the entries are processed try to do the login *It is very probable that you will get the errors attached. Image and error attached. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0175662) hgbot (developer) 2025-02-14 13:42 |
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1538 [^] |
(0175890) hgbot (developer) 2025-02-19 12:40 |
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1538 [^] |
(0175891) hgbot (developer) 2025-02-19 12:40 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo [^] Changeset: 769062edd1b4af93378828f67cb586c815f0b2d8 Author: Asier Lostalé <a.lostale@orisha.com> Date: 14-02-2025 13:41:49 URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/commit/769062edd1b4af93378828f67cb586c815f0b2d8 [^] fixes BUG-57994: modifications in any tree invalidate menu cache Whenever any tree is modified, the menu cache is invalidated which can cause issues while logging in back office. Now we only invalidate the menu cache in case the modfied tree is the one for the menu. --- M modules/org.openbravo.client.application/src/org/openbravo/client/application/event/MenuCacheHandler.java --- |
![]() |
|||
Date Modified | Username | Field | Change |
2025-02-14 13:12 | alostale | Type | defect => backport |
2025-02-14 13:12 | alostale | Target Version | => PR24Q4.2 |
2025-02-14 13:42 | hgbot | Note Added: 0175662 | |
2025-02-19 12:40 | hgbot | Resolution | open => fixed |
2025-02-19 12:40 | hgbot | Status | scheduled => closed |
2025-02-19 12:40 | hgbot | Note Added: 0175890 | |
2025-02-19 12:40 | hgbot | Fixed in Version | => PR24Q4.1 |
2025-02-19 12:40 | hgbot | Note Added: 0175891 |
Copyright © 2000 - 2009 MantisBT Group |