cancel
Showing results for 
Search instead for 
Did you mean: 

Missing node uuid in nodeRef while calling copy-to API

lelejill
Champ in-the-making
Champ in-the-making
Hi buddies,

Just met a problem while using Alfresco out of box Rest API: copy-to function. 

By invoking copy-to API:

In Alfresco Labs v3.2.0, I can copy document or container to destination space successfully, but the return results are little bit different between them.

Copy container can return uuid of new copy, copy document cannot.

I notice that there is because the input parameter are different in copy method

Code snippet of copy-to.post.json.js:

   // copy the node (deep copy for containers)
        if (fileNode.isContainer)
            {
               result.nodeRef = fileNode.copy(destNode, true).toString();
            }
            else
            {
               result.nodeRef = fileNode.copy(destNode).toString();
            }

After using the same call method as copy container, I can get uuid of new copies for both container and document. Smiley Very Happy

However, this does not work in Alfresco Community v3.2.0.

It’s urgent and I really want to get the node uuid of the copy from the return result in Alfresco Community v3.2.0.   Smiley Sad

Any help will be appreciated!

Thanks
Xiaole
1 REPLY 1

lelejill
Champ in-the-making
Champ in-the-making
Fixed. It was submmited as a bug in Alfresco JIRA and fixed