You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Michael Brackx (JIRA)" <ji...@apache.org> on 2013/07/24 16:03:48 UTC

[jira] [Resolved] (CMIS-693) cannot select cmis:objectId for secondary types

     [ https://issues.apache.org/jira/browse/CMIS-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Brackx resolved CMIS-693.
---------------------------------

    Resolution: Not A Problem

the example query is invalid

<table name>  ::= <identifier> !! This MUST be the name of a primary object-type. 
                
> cannot select cmis:objectId for secondary types
> -----------------------------------------------
>
>                 Key: CMIS-693
>                 URL: https://issues.apache.org/jira/browse/CMIS-693
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-server
>    Affects Versions: OpenCMIS 0.9.0
>            Reporter: Michael Brackx
>
> There is a problem with the special virtual column cmis:objectId for secondary object types.
> Example query: "SELECT cmis:objectId FROM cmis:rm_clientMgtRetention"
> Error: Walking of statement failed with RecognitionException error: 
>    cmis:objectId is not a property query name in any of the types in from ...
> Using version 0.9.0.
> QueryObject.resolveTypeForColumnReference() does not have special handling for object id.
> There is special handling in validateColumnReferenceAndResolveType(), but before you get there you hit a normal TypeValidator.typeContainsPropertyWithQueryName().

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