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

View Revisions: Issue #57991 All Revisions ] Back to Issue ]
Summary 0057991: Massive import of elements that updated the tree do not allow login into the application
Revision 2025-02-14 12:17 by egoitz
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.
Revision 2025-02-14 12:13 by egoitz
Description Having thousands of elements in the import entry queue in initial adding or updating in the tree, 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.

Revision 2025-02-14 12:05 by egoitz
Description Having thousands of elements in the import entry queue in initial adding or updating in the tree, causes a error during the login that does not allow to login.

If the import entry is updating the tree, for example if you are importing partners and you want to update also the business partner tree, 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.



Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker