James,

In my experience it seems that some WebDAV clients create an empty file first, 
then update the file with the actual contents as a second step.  If the 
pipeline is setup as "initial", then the CPF code will execute as soon as the 
file is created and thus be operating on an empty document.  After the CPF code 
executes on the empty document, the document is moved to the next state.  When 
the actual contents of the file appear, the CPF code does not fire again 
because the document is not in the initial state.  This is probably not the 
behavior that you were hoping for.  You will probably have better luck setting 
up the pipeline for "update".

In general I have found webDAV processing to be unreliable and sometime 
inconsistent.  It might be less frustrating in the long run if you can find 
another way to solve your problem (ie recordLoader or some custom code using 
xcc)

David

On Jan 12, 2011, at 8:57 AM, James Sulak wrote:

Hello everyone,

I’m attempting to set up a cpf pipeline to execute a module on the “initial” 
state.  This works fine when I insert a document using CQ, but when I try to 
insert a document into the same directory using WebDAV, the module doesn’t 
fire.  However, if I change the pipeline to capture the “updated” state 
transition instead, then the module is executed.

Does the initial state transition simply not happen when a document is inserted 
using WebDAV, or am I doing something wrong?   I’m using Windows 7 64-bit.  
I’ve attempted to load files using both Windows Explorer and Oxygen.  As far as 
I can tell, it doesn’t matter if the module is an XQuery or an XSLT.

I’m new to Marklogic server, so I’m probably doing something boneheaded…

Thanks,

James



<ATT00002.c>


 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://developer.marklogic.com/mailman/listinfo/general

Reply via email to