Bug 765669 - Build failure due to mismatched topic name / ID does not report error details
Summary: Build failure due to mismatched topic name / ID does not report error details
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-09 03:55 UTC by Joshua Wulf
Modified: 2014-10-19 22:59 UTC (History)
2 users (show)

Fixed In Version: 0.20.1
Clone Of:
Environment:
Last Closed: 2012-02-23 15:04:28 UTC
Embargoed:


Attachments (Terms of Use)

Description Joshua Wulf 2011-12-09 03:55:49 UTC
[jwulf@gaura EDS]$ skynet build 8 --server localhost:8180
Skynet client version: 0.15.0
Loading configuration from /home/jwulf/.config/skynet.ini
Web Service at localhost:8180 version: 0.19.0

The post Content Specification failed processing


The build failed due to a mismatch of topic ID/Name in the content spec, but the error detail is not reported on the client.


The server has the detail:

13:52:58,927 ERROR [com.redhat.contentspec.processor.SpecTopic] (http--0.0.0.0-8180-1) Line 19: Invalid Topic! Existing topic title doesn't match.
       -> Specified: EDS Installation Test [5584]
       -> Topic 5584: Test the EDS Installation
13:52:58,928 ERROR [com.redhat.contentspec.processor.ContentSpecProcessor] (http--0.0.0.0-8180-1) The Content Specification is not valid.


This should be output on the client as it is for the same error when pushing, ie:


[jwulf@gaura EDS]$ skynet push -ce post-EDS-GSG --server localhost:8180
Skynet client version: 0.15.0
Loading configuration from /home/jwulf/.config/skynet.ini
Web Service at localhost:8180 version: 0.19.0

ERROR: Line 19: Invalid Topic! Existing topic title doesn't match.
       -> Specified: EDS Installation Test [5584]
       -> Topic 5584: Test the EDS Installation
ERROR: The Content Specification is not valid.

Comment 1 Lee Newson 2012-02-06 10:10:41 UTC
Fixed in version 0.20.1

Previously a generic error message was displayed when the post content specification failed processing. Now I've made it so that it'll return the output of the processor and an extra error message.

Example Output:

Skynet client version: 0.16.1
Loading configuration from /home/lnewson/.config/skynet.ini
Web Service at http://localhost:8080/ version: 0.20.1

ERROR: Line 15: Invalid Content Specification! Incorrect attribute format.
       -> JBoss Enterprise Data Grid
ERROR: The Content Specification is not valid.
ERROR: Unable to build due to the Post Content Specification failing to process.

Comment 2 Joshua Wulf 2012-02-23 15:04:39 UTC
Verified.


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