Hide Forgot
Step 1: Push spec and get Spec ID [jwulf@radhe Content Spec Processor]$ csprocessor push -cn Content_Spec_Processor_Guide.spec CSProcessor client version: 0.16.3 Loading configuration from /home/jwulf/.config/csprocessor.ini Web Service at http://csprocessor.cloud.lab.eng.bne.redhat.com:8080/ version: 0.21.1 INFO: The Content Specification is valid. WARN: Note: All descriptions, tags, source urls and writers will be ignored for existing Topics. INFO: The Content Specification saved successfully. Content Specification ID: 6192 Revision: 39398 Step 2: Attempt to pull Spec ID [jwulf@radhe Content Spec Processor]$ csprocessor pull -c 6192 CSProcessor client version: 0.16.3 Loading configuration from /home/jwulf/.config/csprocessor.ini Web Service at http://csprocessor.cloud.lab.eng.bne.redhat.com:8080/ version: 0.21.1 INFO: No data was found for the specified ID!
Here's the Content spec: Title = Content Spec Processor Guide Subtitle = Using the Content Spec Processor for Topic-based Authoring Description= A guide to using the Content Spec Processor subsystem of Skynet, for documentation authors Product = Internal Version = 5.0 Edition = 1 DTD = Docbook 4.5 Brand = RedHat Copyright Holder=Red Hat, Inc publican.cfg=[git_branch: eng-docs-rhel-6] [Content Spec Processor Guide] Chapter: Introducing the Content Spec Processor A Case Study [6191]
The cause of the error is because there are two tuples in TopicToTopicSecondOrderData which maps a One-to-One relationship between Topic and TopicSecondOrderData. As such this makes it appear as though there are two topics with the same ID and therefore the REST interface returns no data.
Found the problem. The root cause was a wrong Constant ID which was trying to make the topic render and due to concurrency was inserting two ids. I've fixed the Constant. Matt has also added unique constraints to the fields so that this can't happen.
[jwulf@radhe temp]$ csprocessor pull -c 6192 CSProcessor client version: 0.17.0 Loading configuration from /home/jwulf/.config/csprocessor.ini Web Service at http://csprocessor.cloud.lab.eng.bne.redhat.com:8080/ version: 0.21.4 CHECKSUM=389f2bdf47a47d7ee0309e2f593e8c12 ID=6192 Title = Content Spec Processor Guide .....