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 11:24:55 UTC

[jira] Commented: (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:comment-tabpanel&focusedCommentId=12904116#action_12904116 ] 

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

I assume you are using an Alfresco server that is not on version 3.3g.
This is a known Alfresco bug, not an OpenCMIS bug. Please upgrade your server and try again.

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