You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2010/08/30 12:01:20 UTC

[jira] Resolved: (CMIS-246) CmisInvalidArgumentException "Property cmis:objectTypeId must be set!" thrown when calling createDocument

     [ https://issues.apache.org/jira/browse/CMIS-246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florian Müller resolved CMIS-246.
---------------------------------

    Resolution: Not A Problem

> 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.