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