Bug 787541

Summary: REST Interface - Unable to create SnapshotRevisions
Product: [Community] PressGang CCMS Reporter: Lee Newson <lnewson>
Component: REST-APIAssignee: Matthew Casperson <mcaspers>
Status: CLOSED WORKSFORME QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: cbredesen, topic-tool-list
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-06 23:22:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lee Newson 2012-02-06 03:39:28 UTC
This is a similar issue to Bug 787534. To create a snapshot revision you either need to create the snapshot first and then update it with the revision or possibly create it at the same time as the snapshot. However to do this you need to include the Snapshot object in the SnapshotRevision and then add a collection of revisions to the snapshot. So when this gets marshaled to JSON it causes a recursion error due to each object having a reference to each other.

Comment 1 Matthew Casperson 2012-02-06 08:57:38 UTC
This issue should also be fixed with the changes made to fix https://bugzilla.redhat.com/show_bug.cgi?id=787534