02-01-2016 04:37 AM
Hi, 'cmis:description' property is defined as read-write but it's unsettable. Is it intended behavior ?
I added the following to nuxeo-opencmis-test and got a cmisconstraintexception with message "read only property description " @Test public void SettingCmisDescription () { assertEquals(BindingType.ATOMPUB,session.getBinding().getBindingType()); Folder folder = FileUtils.getFolder("/testfolder1",session); ObjectType noteType = session.getTypeDefinition("Note"); assertEquals ( Updatability.READWRITE, noteType.getPropertyDefinitions().get("cmis:description").getUpdatability() );
//properties of new document
Map<String, Object> props = new HashMap<String, Object>();
//create a Note called test2
props.put("cmis:objectTypeId", "Note");
props.put("cmis:name", "test2");
props.put("cmis:description", "Note description");
Document doc = folder.createDocument(props, null, VersioningState.MAJOR);
FileUtils.printProperties(doc);
assertNotNull(doc.getSecondaryTypes());
}
02-01-2016 05:24 AM
Thanks for the report, NXP-18908 was opened to track this. Note that a workaround is to use dc:description
.
02-01-2016 05:34 AM
Florent, Thanks for the quick answer and for NXP-18908
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.