Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016140Openbravo ERPA. Platformpublic2011-03-05 16:012011-03-17 00:00
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
 
2.50MP28 
Core
No
0016140: Cycle in identifier columns result in stack overflow
See this forum post:
http://forge.openbravo.com/plugins/espforum/view.php?group_id=100&forumid=549512&topicid=7023095 [^] [^]

This stacktrace:
java.lang.StackOverflowError
    at java.util.ArrayList.get(Unknown Source)
    at java.util.AbstractList$Itr.next(Unknown Source)
    at org.openbravo.dal.security.EntityAccessChecker.addDerivedReadableIdentifierProperties(EntityAccessChecker.java:251)
    at org.openbravo.dal.security.EntityAccessChecker.addDerivedReadableIdentifierProperties(EntityAccessChecker.java:255)

There is no safeguard against infinite loops in this part of the code. This needs to be added.
No tags attached.
related to defect 0016126pi closed mtaal Cycle in identifier columns result in stack overflow 
Issue History
2011-03-05 16:01mtaalNew Issue
2011-03-05 16:01mtaalAssigned To => mtaal
2011-03-05 16:01mtaalModules => Core
2011-03-05 16:01mtaalRelationship addedrelated to 0016126
2011-03-05 16:01mtaalSummary16126: Cycle in identifier columns result in stack overflow => Cycle in identifier columns result in stack overflow
2011-03-05 16:26hgbotCheckin
2011-03-05 16:26hgbotNote Added: 0034585
2011-03-05 16:26hgbotStatusnew => resolved
2011-03-05 16:26hgbotResolutionopen => fixed
2011-03-05 16:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/a5dbd7767f354ff05f1cc252078bc5ca1ff0af8f [^]
2011-03-15 18:08marvintmNote Added: 0034912
2011-03-15 18:08marvintmStatusresolved => closed
2011-03-17 00:00anonymoussf_bug_id0 => 3217688

Notes
(0034585)
hgbot   
2011-03-05 16:26   
Repository: erp/stable/2.50
Changeset: a5dbd7767f354ff05f1cc252078bc5ca1ff0af8f
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sat Mar 05 16:26:11 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/a5dbd7767f354ff05f1cc252078bc5ca1ff0af8f [^]

Fixes issue 16140: Cycle in identifier columns result in stack overflow

---
M src/org/openbravo/dal/security/EntityAccessChecker.java
---
(0034912)
marvintm   
2011-03-15 18:08   
Followed the instructions and didn't get any problems.