cancel
Showing results for 
Search instead for 
Did you mean: 

Why doesn't cmislib's getDescendants() retrieve all documents?

Steven_Huwig1
Star Contributor
Star Contributor

I am currently using Nuxeo DM 5.7.2.

I would really like to use cmislib to access Nuxeo document metadata instead of the underlying database, but calls to getDescendants() do not retrieve the entire list of documents under a path. Is there a way to troubleshoot this?

6 REPLIES 6

Steven_Huwig1
Star Contributor
Star Contributor

I have looked into using the REST API as a substitute. It seems like sometimes the "totalSize" entry in the response is returning "-2" which makes no sense. This is consistent with the incomplete listings through cmislib, so I wonder if the two are related.

rg1_
Star Contributor
Star Contributor

Please provide more information...

Steven_Huwig1
Star Contributor
Star Contributor

I believe it's just retrieving one page of results for certain subdirectories. Manually recursing via getChildren() does return a different set of files.

Steven_Huwig1
Star Contributor
Star Contributor

One more data point

rg1_
Star Contributor
Star Contributor

Note that getDescendents() for Nuxeo CMIS has a default depth of 2.

Steven_Huwig1
Star Contributor
Star Contributor

Thanks for pointing that out, but everything I am trying to retrieve is in either the child or the grandchild of the path I'm passing in.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.