LearningRegistry/LearningRegistry — Issue #120: Publish service allowing create_timestamp and update_timestamp values
Author: joehobson
Created: 2011-10-28 04:46:24+00:00
State: open

When testing the code we're using to publish resource collections I noticed that we're sending create_timestamp and update_timestamp as part of our JSON on publish (and in the wrong format).

Example record: http://lrtest01.learningregistry.org/harvest/getrecord?request_ID=b4d1e65a9339442c85bb1484fe563b15&by_doc_ID=T

According to the Publish service spec: "The publication process SHALL set values for publish_node, update_timestamp, node_timestamp, create_timestamp. All timestamp values SHALL be the identical. All timestamp values SHALL be UTC 0."

The Publish service is allowing me to set values for create and update, not validating them as the correct format, and not validating that they're identical. I'll update my code to no longer send these values, but the service should meet the spec.