chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Hübel (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CMIS-1012) OpenCMIS query parser does not allow selecting secondary properties in simple queries
Date Wed, 15 Feb 2017 06:54:41 GMT

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

Jens Hübel commented on CMIS-1012:
----------------------------------

I will have a look at the code again. Making this behavior optional should not be a big deal.
If we follow the strict mode the different behavior between SELECT * returning all properties
and SELECT a, b, c, ... where a, b, c, ... are all properties of the object returned also
looks a bit strange to me. All in all we need a much simpler handling of secondary types in
CMIS, but this has been discussed long time ago in the committee. Unfortunately without success
so far.

> OpenCMIS query parser does not allow selecting secondary properties in simple queries
> -------------------------------------------------------------------------------------
>
>                 Key: CMIS-1012
>                 URL: https://issues.apache.org/jira/browse/CMIS-1012
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-server
>    Affects Versions: OpenCMIS 1.0.0
>            Reporter: Jens Hübel
>            Priority: Minor
>
> The query parser in OpenCMIS allows only to select properties which are part of a type
that is mentioned in a FROM or JOIN statement. It is not possible to retrieve properties from
secondary types when doing a simple query on a primary type (unless you use SELECT *).
> Example:
> SELECT cmis:name, cmis:objectId, mySecondaryProperty FROM cmis:document WHERE cmis:createdBy
= 'joe'
> fails to parse with
> mySecondaryProperty is not a property query name in any of the types in from



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message