sakaiproject/nakamura — pull request #744 by mrvisser (2012-04-16 20:20:57+00:00)
Title: KERN-2771 Creating a special operation for publishing sakaidoc pages

This was created to overcome issues with replacing sakai messages when a page is saved/published. This operation will maintain a history of sakai/message nodes that existed prior to the draft being published, and that backup will be overlaid onto the final content after the draft has been published.

The new operation is keyed by "publish-sakaidoc-page", and is not expected to be permanent, it will hopefully be obsolete in 1.3. Here's a sample cURL request the executes the new operation:

curl -u admin:admin --referer "http://localhost:8080/" http://localhost:8080/p/l3H5csVMaa/tmp_id4461590 \
-F:operation="publish-sakaidoc-page" \
-F:dest="/p/l3H5csVMaa/id4461590" \
-F:replace="true" \
-F_charset_="utf-8"