Bug 786646

Summary: REST Interface - Snapshot Topic creation returns the wrong ID
Product: [Community] PressGang CCMS Reporter: Lee Newson <lnewson>
Component: REST-APIAssignee: Matthew Casperson <mcaspers>
Status: CLOSED CURRENTRELEASE 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-02 21:44:09 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-02 02:07:43 UTC
When creating a SnapshotTopic the ID that is returned is the TopicID that was sent. The problem lies in the SnapshotTopicV1Factory.createRESTEntityFromDBEntity.

Currently it sets the id as:
retValue.setId(entity.getTopicId());

However it should set the SnapshotTopic ID and not the TopicID:
retValue.setId(entity.getId());

Comment 1 Matthew Casperson 2012-02-02 21:44:09 UTC
Fixed.