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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0013509
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2010-06-02 17:162010-06-17 00:00
ReporteriperdomoView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisioneb86e4c97fe5
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_15
OS Version2.6.30-gentoo-r5Database version8.3.8Ant version1.7.1
Product Version2.50MP18SCM revision 
Merge Request Status
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

0013509: In a OBCriteria you can't use list() after a count() call

DescriptionThe count() call modifies the query executed against the database. After a count() call you can't use list() of the same OBCriteria object.
Steps To ReproduceApply the attached patch and run the first test
You'll get something like:

Error list() after count()
java.lang.ClassCastException: java.lang.Integer cannot be cast to org.openbravo.model.ad.system.SystemInformation
TagsNo tags attached.
Attached Filesdiff file icon DalTest.java.diff [^] (904 bytes) 2010-06-02 17:16 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0028076)
hgbot (developer)
2010-06-07 20:13

Repository: erp/devel/pi
Changeset: eb86e4c97fe58662b8647e72f55cdb5cac230acc
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Jun 07 20:12:45 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/eb86e4c97fe58662b8647e72f55cdb5cac230acc [^]

fixes issue 13509: In a OBCriteria you can't use list() after a count() call

---
M src-test/org/openbravo/test/dal/IssuesTest.java
M src/org/openbravo/dal/service/OBCriteria.java
---
(0028163)
hudsonbot (viewer)
2010-06-08 04:22

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/eb86e4c97fe5 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/6875c9c0ac89 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17566.obx [^]
(0028489)
iperdomo (viewer)
2010-06-16 10:16

Tested on pi @ rev ced7876366af

- Issue History
Date Modified Username Field Change
2010-06-02 17:16 iperdomo New Issue
2010-06-02 17:16 iperdomo Assigned To => mtaal
2010-06-02 17:16 iperdomo File Added: DalTest.java.diff
2010-06-02 17:16 iperdomo OBNetwork customer => No
2010-06-02 17:19 iperdomo Description Updated View Revisions
2010-06-07 08:21 alostale Status new => scheduled
2010-06-07 20:13 hgbot Checkin
2010-06-07 20:13 hgbot Note Added: 0028076
2010-06-07 20:13 hgbot Status scheduled => resolved
2010-06-07 20:13 hgbot Resolution open => fixed
2010-06-07 20:13 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/eb86e4c97fe58662b8647e72f55cdb5cac230acc [^]
2010-06-08 04:22 hudsonbot Checkin
2010-06-08 04:22 hudsonbot Note Added: 0028163
2010-06-16 10:16 iperdomo Note Added: 0028489
2010-06-16 10:16 iperdomo Status resolved => closed
2010-06-17 00:00 anonymous sf_bug_id 0 => 3017328


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker