Bug 787541 - REST Interface - Unable to create SnapshotRevisions
Summary: REST Interface - Unable to create SnapshotRevisions
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: PressGang CCMS
Classification: Community
Component: REST-API
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Matthew Casperson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-06 03:39 UTC by Lee Newson
Modified: 2014-08-04 22:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-06 23:22:52 UTC


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.