AnsweredAssumed Answered

OnCopyNode Event problem

Question asked by eugeneburtsev on Aug 12, 2009
Latest reply on Aug 12, 2009 by eugeneburtsev
I implement interface CopyServicePolicies.OnCopyNodePolicy. When I try to copy document, document was copied successfilly, but size of copy is 0 and when I try to open it I recieve the error message:

The node's content is missing:
   node: workspace://SpacesStore/ea5ad157-d489-4e94-84aa-7d7f3531d8dd
   reader: null 
Please contact your system administrator.
My code near:
Binding behavior:

      NamespaceService.ALFRESCO_URI, "onCopyNode"),
      new JavaBehaviour(this, "onCopyNode"));


public void onCopyNode(QName classRef, NodeRef sourceNodeRef,
      StoreRef destinationStoreRef, boolean copyToNewNode,
      PolicyScope copyDetails) {
   log.debug("copyToNewNode = " + copyToNewNode);