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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0058088
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2025-02-27 07:572025-02-27 11:46
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in VersionPR25Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Statusapproved
Review Assigned To
OBNetwork customerNo
Web browser
ModulesCore
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0058088: Cannot access to organizationInformationList of current context organization

DescriptionCannot 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 Reproduce1- Execute the attached jUnit tests that contains a reproducer, it fails
TagsNo tags attached.
Attached Filesdiff file icon 58088_reproducer.diff [^] (2,258 bytes) 2025-02-27 08:13 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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 [^]

- Issue History
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
Powered by Mantis Bugtracker