File Name Character Limit
It appears to me as though the file name as it relates to the path is being truncated to 25 characters.
For example, we have a file named tst_onlinebank_noncard_faq.xml so its 30 characters, but when I view the object path it appears as:
But if I look at the CMIS properties the name is “correct” as follows:
What this affects is searching for a file name by path we can’t find a matching entry as Nuxeo has truncated it.
Since 5.9.3, you'll be able to use the property nuxeo.path.segment.maxsize to set the max size of a path segment
In 5.8 you have to implement your version of the interface PathSegmentService and contribute it with <extension target="org.nuxeo.ecm.core.api.pathsegment.PathSegmentService"
point="pathSegmentService"> <service class="xxx.xxx.xxx.MyPathSegmentService" />
Looking at the nuxeo documentation the default doc id length is 24 (at least in the org.nuxeo.common.utils.IdUtils class document for 5.8). In the past I have overridden this (in java) with the following…
String docId = IdUtils.generateId(title, "-", true, 65); docModel = session.createDocumentModel(folderDoc.getPathAsString(), docId, Resources.DOC1);
The docid is generated using “-” as the word separator, all in lower case, and up to 65 characters long). Docid is then used to create the document.