Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0058088 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2025-02-27 07:57 | 2025-02-27 11:46 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | high | Resolution | fixed | Fixed in Version | PR25Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | approved | |||||||
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 | 0058088: Cannot access to organizationInformationList of current context organization | |||||||
Description | Cannot access to organizationInformationList of current context organization, when trying to access to that property the following error is thrown: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: Organization.organizationInformationList, could not initialize proxy - no Session | |||||||
Steps To Reproduce | 1- Execute the attached jUnit tests that contains a reproducer, it fails | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|
(0176187) hgbot (developer) 2025-02-27 08:19 |
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1560 [^] |
(0176210) hgbot (developer) 2025-02-27 11:46 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo [^] Changeset: 9e519c77a8621ad83176b21e5e6302dc9bc4d204 Author: Carlos Aristu <c.aristu@orisha.com> Date: 27-02-2025 10:09:11 URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/commit/9e519c77a8621ad83176b21e5e6302dc9bc4d204 [^] fixes BUG-58088: cannot access to the current context org info The current organization is cached in OBContext. When accessing to the organizationInformationList property with a different Hibernate session from the one that loaded the object in the context a LazyInitializationException was being thrown. Now we initialize the organizationInformationList property when loading the current organization in OBContext, so it can be safely accessed later with a different session. --- M src-test/src/org/openbravo/test/dal/OBContextTest.java M src/org/openbravo/dal/core/OBContext.java --- |
(0176211) hgbot (developer) 2025-02-27 11:46 |
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1560 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2025-02-27 07:57 | caristu | New Issue | |
2025-02-27 07:57 | caristu | Assigned To | => caristu |
2025-02-27 07:57 | caristu | OBNetwork customer | => No |
2025-02-27 07:57 | caristu | Modules | => Core |
2025-02-27 07:57 | caristu | Triggers an Emergency Pack | => No |
2025-02-27 08:13 | caristu | File Added: 58088_reproducer.diff | |
2025-02-27 08:19 | hgbot | Merge Request Status | => open |
2025-02-27 08:19 | hgbot | Note Added: 0176187 | |
2025-02-27 11:46 | hgbot | Merge Request Status | open => approved |
2025-02-27 11:46 | hgbot | Resolution | open => fixed |
2025-02-27 11:46 | hgbot | Status | new => closed |
2025-02-27 11:46 | hgbot | Fixed in Version | => PR25Q2 |
2025-02-27 11:46 | hgbot | Note Added: 0176210 | |
2025-02-27 11:46 | hgbot | Note Added: 0176211 |
Copyright © 2000 - 2009 MantisBT Group |