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

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());
}
0 votes

2 answers

2070 views

ANSWER



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

0 votes



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

0 votes