03-03-2014 06:44 PM
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:
/default-domain/workspaces/tst_faq/tst_onlinebank_noncard_f
But if I look at the CMIS properties the name is “correct” as follows:
cmis:name: tst_onlinebank_noncard_faq.xml
What this affects is searching for a file name by path we can’t find a matching entry as Nuxeo has truncated it.
03-03-2014 06:54 PM
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.
03-03-2014 07:04 PM
Thanks, the trick for me is that I'm creating my documents remotely via the Apache Chemistry so I don't think there is a way to trick it into doing this.
03-03-2014 07:08 PM
The only thing I can think of is overriding the default action in Nuxeo through a custom contribution.
03-04-2014 05:13 AM
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
04-29-2014 12:38 PM
Is there a way to get this working on Nuxeo 5.8?
04-29-2014 12:45 PM
No there isn't. It's a new property introduced in 5.9.3
04-30-2014 10:10 AM
Thanks Thierry, It's working now
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
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.