It was the changes to permissions of managed documents that prompted the request for a function to update the version file directly.
Thanks for the suggestion to skip the call to dls:document-manage on empty create. However, Waiting for a timed process to run is not good for the user experience so I’m looking at other options. I seem to have it working by skipping the manage call on empty create, set an emptyOnCreate property (CPF style) and call dls:document-manage() later on the first update. Thanks for the suggestion, Keith L. Breinholt [email protected]<mailto:[email protected]> From: [email protected] [mailto:[email protected]] On Behalf Of Wayne Feick Sent: Wednesday, March 17, 2010 3:28 PM To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] Need dls:document-update-version-file($uri, $node, $version) function Your create trigger could skip calling dls:document-manage() if the document is empty. That possibly combined with a periodic background task that goes ahead and manages those empty documents if they aren't updated within a minute or two would do the trick. Are you planning on updating managed documents later on? You'll run into permissions problems if you do that... On Wed, 2010-03-17 at 14:16 -0700, Keith L. Breinholt wrote: We have a need for users to add managed content via WebDAV. This seemed pretty straight forward by adding a create trigger that calls dls:document-manage() on all documents on creation. However, Win7 and Vista WebDAV clients both write a zero byte file first and then overwrite it with the real contents of the file. Because of this version 1 of any document created by these Windows WebDAV clients are empty. I’ve looked for any way to update version 1 of a file but I don’t see any way of updating them except to delete the managed document and start over. Is there another way? If not we could really use a function dls:document-update-version-file( $uri, $node, $version ). Keith L. Breinholt Missionary & Public Affairs Portfolio [email protected]<mailto:[email protected]> "Do what you can, with what you have, where you are." Theodore Roosevelt NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
