cancel
Showing results for 
Search instead for 
Did you mean: 

(7.10) (CMIS Atompub) cmis:description updateability ?

J_-M_K_
Champ in-the-making
Champ in-the-making

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());
}
2 REPLIES 2

Florent_Guillau
World-Class Innovator
World-Class Innovator

Thanks for the report, NXP-18908 was opened to track this. Note that a workaround is to use dc:description.

J_-M_K_
Champ in-the-making
Champ in-the-making

Florent, Thanks for the quick answer and for NXP-18908

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.