chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CMIS-665) load primary type in AbstractBrowserServiceCall
Date Thu, 06 Jun 2013 12:34:20 GMT

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

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

Changing the property ids that are defined in the CMIS specification breaks compatibility
and explains your issue. You shouldn't mess with them anywhere in your code.

The server returns valid JSON responses and is compatible with all JSON parsers I have tested
so far. It shouldn't be necessary to change anything.
                
> load primary type in AbstractBrowserServiceCall
> -----------------------------------------------
>
>                 Key: CMIS-665
>                 URL: https://issues.apache.org/jira/browse/CMIS-665
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-server
>            Reporter: Mouad EL BAKKALI
>
> While trying to create a document, loading the primary type fails in:
> {code:title=AbstractBrowserService.java}
> ....
>        // load primary type
>         List<String> objectTypeIdsValues = properties.get(PropertyIds.OBJECT_TYPE_ID);
>         if (objectTypeIdsValues != null && !objectTypeIdsValues.isEmpty()) {
>             TypeDefinition typeDef = typeCache.getTypeDefinition(objectTypeIdsValues.get(0));
>             if (typeDef == null) {
>                 throw new CmisInvalidArgumentException("Invalid type: " + objectTypeIdsValues.get(0));
>             }
>         }
> ....
> {code}
> objectTypeIdsValues = null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message