You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Jose M. Palomar (JIRA)" <ji...@apache.org> on 2010/08/30 09:06:54 UTC

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

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.


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

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904183#action_12904183 ] 

Florent Guillaume commented on CMIS-246:
----------------------------------------

We'll be fixing this in Nuxeo.
For referenced, this is tracked by https://jira.nuxeo.org/browse/CMIS-24


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


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

Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Jose M. Palomar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904120#action_12904120 ] 

Jose M. Palomar commented on CMIS-246:
--------------------------------------

I'm using Nuxeo 5.3.1. ¿Is a problem in the document definition?.

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


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

Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
    [ 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.