Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342595

Summary: OCLQueryHandler does not ignore old revisions
Product: [Modeling] EMF Reporter: Eike Stepper <stepper>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3 CC: bencamara8
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 342657    
Bug Blocks:    

Description Eike Stepper CLA 2011-04-12 11:10:32 EDT
In case of auditing or branching the OCLQueryHandler does not ignore old revisions of detached objects.
Comment 1 Eike Stepper CLA 2011-04-12 11:12:09 EDT
The OCLQueryHandler makes wrong usage of the new exactTime parameter in the two calls to IStoreAccessor.handleRevisions().
Comment 2 Eike Stepper CLA 2011-04-12 11:13:03 EDT
Correction: The CDOExtentCreator makes this fault.
Comment 3 Eike Stepper CLA 2011-04-12 11:13:17 EDT
Committed revision 7612:
- trunk/plugins/org.eclipse.emf.cdo.server.ocl
- trunk/plugins/org.eclipse.emf.cdo.tests
Comment 4 Eike Stepper CLA 2011-04-12 11:13:27 EDT
Committed revision 7612
Comment 5 Erdal Karaca CLA 2011-06-16 03:46:06 EDT
The sql query handler has the same behavior:

org.eclipse.emf.cdo.util.ObjectNotFoundException: Object <...> not 
found in branch 0 at *

when querying the db like this and an object was deleted:

select * from MyObject
Comment 6 Eike Stepper CLA 2011-06-23 03:42:25 EDT
Available in R20110608-1407