chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Wolthuis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-1036) As a Developer I want to be able to use a CMIS selector (or not) when retrieving Objects
Date Thu, 29 Jun 2017 07:50:00 GMT

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

Edward Wolthuis commented on CMIS-1036:
---------------------------------------

Hi Florian, thanks for your quick reaction!

You're of course right that using cmisselector is a specific feature for the Browser binding.
I should have mentioned that specifically.

My specific use case is that I want to retrieve the properties of a folder, with all its children
included, as returned by doing a HTTP Get on:
http://example.com/cmis/repository/rootFolder/myFolder
(which I expect to be the same as doing a HTTP Get on  http: //example.com/cmis/repository/123/myFolder?cmisselector=children)

However, I'm unable to get the same set of properties when using the getObjectByPath method
on the session instance.
The reason for this is that the cmisselector parameter is always set to 'object' in the ObjectServiceImpl
class (Browser binding) for the getObject methods, resulting in the following url:
http: //example.com/cmis/repository/123/myFolder?cmisselector=object
If the cmisselector would never be set, I would receive the result that I expect.

My current workaround is that I construct my own URL for this specific case (not using Chemistry
at all), and parse the response myself.
However, I would like to have all my CMIS client code to go via Chemistry.
Is there some solution that I'm missing?
 



> As a Developer I want to be able to use a CMIS selector (or not) when retrieving Objects
> ----------------------------------------------------------------------------------------
>
>                 Key: CMIS-1036
>                 URL: https://issues.apache.org/jira/browse/CMIS-1036
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: opencmis-client-bindings
>    Affects Versions: OpenCMIS 1.1.0
>            Reporter: Edward Wolthuis
>
> When retrieving a Folder via plain HTTP, without using a cmisselector parameter (i.e.
GET http://example.com/cmis/repository/123/myFolder), the Specs define that a value of 'children'
will be used to return the result.
> (see section 5.4 at http://docs.oasis-open.org/cmis/CMIS/v1.1/errata01/os/CMIS-v1.1-errata01-os-complete.html#x1-5580004)
> When using the browser bindings, object retrieval by using the path (i.e. /123/MyFolder)
always seems to use a cmisselector parameter with the value of 'object', making it impossible
to reproduce the result above. (actually, all Object finders)
> (see org.apache.chemistry.opencmis.client.bindings.spi.browser.ObjectServiceImpl)
> Why not let the user decide to use a cmisselector (for example in the Operation Context),
or not?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message