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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033490
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformcriticalsometimes2016-07-18 11:382016-08-11 18:40
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PriorityimmediateResolutionfixedFixed in Version3.0PR16Q4
StatusclosedFix in branchFixed in SCM revision172bf8f14427
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression levelPre packaging ( pi )
Regression date2016-07-08
Regression introduced in releasepi
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/772761fc1df8 [^]
Triggers an Emergency PackNo
Summary

0033490: can't create/edit record depending on the order windows are opened

DescriptionDepending on the order different windows are opened/operated, it is possible to reach a situation where it is not possible to create/edit rows in some of them.

This is mainly reproducible when trying to create a new record in a tab that shares the same table than another tab that has been previously opened in the same session.
Steps To Reproduce1. In an instance with NO module in development
2. Login as Openbravo Admin
3. Open Sales Order window
4. Open Purchase Order window
5. Create new record
    ERRORS:
      -UI: does not show default values
      -logs: ERROR org.hibernate.LazyInitializationException - could not initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
    at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167)
    at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
    at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
    at org.openbravo.model.ad.datamodel.Table_$$_javassist_322.getDataOriginType(Table_$$_javassist_322.java)
    at org.openbravo.client.application.window.FormInitializationComponent.execute(FormInitializationComponent.java:147)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
caused by defect 00332003.0PR16Q4 closedalostale getId in DAL proxy loads object in memory 

-  Notes
(0088549)
hgbot (developer)
2016-07-18 11:46

Repository: erp/devel/pi
Changeset: 172bf8f14427197f393e59e6e1253a997c54b446
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Jul 18 11:45:42 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/172bf8f14427197f393e59e6e1253a997c54b446 [^]

fixed bug 33490: can't create/edit record depending on how windows are opened

  Depending on the order different windows were opened/operated within the same
  session, it was not possible to edit/crete records in some of these windows.

  The problem was on how data was cached in ADCS. If more than one tab shared
  the same table, tab.getTable was only initialized for the 1st one because
  tab.getTable.getId() was used to check whether it was already in cache. This
  code before made the table to be fully initialized, but now it only gets the
  id from proxy.

  Fixed by forcing table initialization.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/ApplicationDictionaryCachedStructures.java
---
(0088655)
caristu (developer)
2016-07-26 09:03

Code review + testing OK in pi@c1dff2b0991a
(0089017)
hudsonbot (developer)
2016-08-11 18:40

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/edaa05b1fb18 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2016-07-18 11:38 alostale New Issue
2016-07-18 11:38 alostale Assigned To => alostale
2016-07-18 11:38 alostale Modules => Core
2016-07-18 11:38 alostale Regression level => Pre packaging ( pi )
2016-07-18 11:38 alostale Regression date => 2016-07-08
2016-07-18 11:38 alostale Regression introduced in release => pi
2016-07-18 11:38 alostale Regression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/772761fc1df8 [^]
2016-07-18 11:38 alostale Triggers an Emergency Pack => No
2016-07-18 11:39 alostale Relationship added caused by 0033200
2016-07-18 11:41 alostale Review Assigned To => caristu
2016-07-18 11:46 hgbot Checkin
2016-07-18 11:46 hgbot Note Added: 0088549
2016-07-18 11:46 hgbot Status new => resolved
2016-07-18 11:46 hgbot Resolution open => fixed
2016-07-18 11:46 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/172bf8f14427197f393e59e6e1253a997c54b446 [^]
2016-07-26 09:03 caristu Note Added: 0088655
2016-07-26 09:03 caristu Status resolved => closed
2016-07-26 09:03 caristu Fixed in Version => 3.0PR16Q4
2016-08-11 18:40 hudsonbot Checkin
2016-08-11 18:40 hudsonbot Note Added: 0089017


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker