[ 
https://issues.apache.org/jira/browse/CMIS-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904127#action_12904127
 ] 

Florian Müller commented on CMIS-246:
-------------------------------------

I've checked the public Nuxeo server 
(http://cmis.demo.nuxeo.org/nuxeo/site/cmis/repository) and it has the same 
problem that Alfresco had in the past.
The property definition of cmis:objectTypeId is wrong. The updatability has to 
be "oncreate", not "readonly". See CMIS spec: 
http://docs.oasis-open.org/cmis/CMIS/v1.0/os/cmis-spec-v1.0.html#_Toc243905396

This has to be fixed by Nuxeo.

> CmisInvalidArgumentException "Property cmis:objectTypeId must be set!" thrown 
> when calling createDocument
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CMIS-246
>                 URL: https://issues.apache.org/jira/browse/CMIS-246
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client, opencmis-client-bindings, 
> opencmis-commons
>            Reporter: Jose M. Palomar
>
> CmisInvalidArgumentException is thrown when trying to create new document 
> indicating that cmis:objectTypeId is not set although the property was set in 
> properties input Map.
> I made some tests and it seems that the problem is in the conversion of the 
> input Map to the org.apache.chemistry.opencmis.commons.data.Properties object 
> using the method 
> org.apache.chemistry.opencmis.client.runtime.repository.PersistentObjectFactoryImpl.convertProperties(Map<String,
>  ?>, ObjectType, Set<Updatability>). When the conversion is made the property 
> cmis:objectTypeId is not added to the Properties because is not updatable.
> Later when 
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.checkCreateProperties
>  is called the exception is thrown because the type property is not present.
> I tried with latest revision of trunk (r989781).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to