Bug 111016

Summary: DataQueryDataCollectionAdapter.getObjectType() fails if next() has not yet been called.
Product: [Retired] Red Hat Web Application Framework Reporter: Scott Seago <sseago>
Component: persistenceAssignee: ccm-bugs-list
Status: CLOSED WONTFIX QA Contact: Jon Orris <jorris>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-09 15:36:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Scott Seago 2003-11-26 15:17:10 UTC
Description of problem:
DataQueryDataCollectionAdapter.getObjectType() calls
getDataObject().getObjectType() to return the object type. This fails
if next() has not yet been called. One consequence of this is that you
cannot filter on permissions, as the permissions code calls
getObjectType() on the passed-in DataQuery

London 5.2 change 38321 changes this to:
(ObjectType) getType().getProperty(m_dataObjectProperty).getType();

so that filtering is possible.



Version-Release number of selected component (if applicable):
5.2 and later.

How reproducible:
always

Steps to Reproduce:
1. call getObjectType on a DataQueryDataCollectionAdapter before
calling next() on it.

Comment 1 Scott Seago 2003-11-26 16:24:57 UTC
Forgot to remove the fixme comment in the above changelist. 38324
removes it.