Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012702Openbravo ERPA. Platformpublic2010-03-17 09:152010-04-19 21:10
mtaal 
mtaal 
urgentmajorhave not tried
closedfixed 
5
pi 
pi 
Core
No
0012702: Cycle in parent reference references then DAL throws stack over flow error
When there is a cycle in the parent reference associations in the AD_Reference table then the DAL will get into an infinite loop and throw a stack over flow.

This happens in this method in org.openbravo.base.model.Reference:
  public String getModelImplementationClassName() {
    if (getModelImpl() == null && getParentReference() != null) {
      return getParentReference().getModelImplementationClassName();
    }
    return getModelImpl();
  }
No tags attached.
Issue History
2010-03-17 09:15mtaalNew Issue
2010-03-17 09:15mtaalAssigned To => mtaal
2010-03-19 17:38hgbotCheckin
2010-03-19 17:38hgbotNote Added: 0025625
2010-03-19 17:38hgbotStatusnew => resolved
2010-03-19 17:38hgbotResolutionopen => fixed
2010-03-19 17:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0f475015bd24f8820edbae6cf8ae49a447c23e49 [^]
2010-04-14 18:29iperdomoNote Added: 0026215
2010-04-14 18:29iperdomoStatusresolved => closed
2010-04-15 00:00anonymoussf_bug_id0 => 2987420
2010-04-19 21:10hudsonbotCheckin
2010-04-19 21:10hudsonbotNote Added: 0026357

Notes
(0025625)
hgbot   
2010-03-19 17:38   
Repository: erp/devel/pi
Changeset: 0f475015bd24f8820edbae6cf8ae49a447c23e49
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Mar 19 17:45:39 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0f475015bd24f8820edbae6cf8ae49a447c23e49 [^]

fixes issue 12702: Cycle in parent reference references then DAL throws stack over flow error

---
M src-test/org/openbravo/test/dal/IssuesTest.java
M src/org/openbravo/base/model/Reference.hbm.xml
M src/org/openbravo/base/model/Reference.java
---
(0026215)
iperdomo   
2010-04-14 18:29   
Tested on PI @ rev b20cb5f43144 using the testcase
(0026357)
hudsonbot   
2010-04-19 21:10   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/0f475015bd24 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/91d98bda46c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17088.obx [^]