Bug 107771
Summary: | ContentItem Context not property set | ||
---|---|---|---|
Product: | [Retired] Red Hat Enterprise CMS | Reporter: | Randy Graebner <randyg> |
Component: | domain | Assignee: | ccm-bugs-list |
Status: | CLOSED WONTFIX | QA Contact: | Jon Orris <jorris> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | nightly | ||
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-09-05 17:26:25 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
Randy Graebner
2003-10-22 20:15:29 UTC
I couldn't reproduce this bug on dev or 6.0.x. Looking at the code, the call to instance.setParent(this) in addInstance should always set the context. I can no longer produce it either. When I originally filed the ticket, the call to hasInstance(instance.getLanguage()) within the addInstance method (it is in the Assert before the call to instance.setParent()) was causing the system to flush itself and the instance would save with no parent. However, it appears that in the current code the hasInstance call is able to determine if a DataAssocationCursor is empty without flushing objects to the database. So, I guess we can close out the ticket if it is indeed possible to execute the below code without flushing to the database. final DataAssociationCursor instances = instances(); instances.addEqualsFilter(ID, instance.getID()); return !instances.isEmpty(); QA_READY has been deprecated in favor of ON_QA. Please use ON_QA in the future. Moving to ON_QA. Closing old tickets |