[jira] [Commented] (CONNECTORS-948) CMIS Connector returns couldn't encrypt null when the query doesn't include cmis:objectId

2022-04-27 Thread Markus Schuch (Jira)


[ 
https://issues.apache.org/jira/browse/CONNECTORS-948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17528963#comment-17528963
 ] 

Markus Schuch commented on CONNECTORS-948:
--

Fixed with MCF 1.7

> CMIS Connector returns couldn't encrypt null when the query doesn't include 
> cmis:objectId
> -
>
> Key: CONNECTORS-948
> URL: https://issues.apache.org/jira/browse/CONNECTORS-948
> Project: ManifoldCF
>  Issue Type: Bug
>  Components: CMIS connector
>Affects Versions: ManifoldCF 1.6.1
>Reporter: Piergiorgio Lucidi
>Assignee: Piergiorgio Lucidi
>Priority: Minor
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Manifold needs to know the objectId of a content to create a reference for it.
> This means that executing the following query there is no problem:
> {code}
> select * from cmis:document
> {code}
> But trying to execute a similar query:
> {code}
> select cmis:name from cmis:document
> {code}
> Manifold returns an error from OpenCMIS that is the following:
> {code}
> couldn't encrypt: null
> {code}
> This because the cmis:objectId is not added in the select clause and it is 
> needed to create a reference for this content inside the Manifold database.
> The workaround is to add the objectId in the query in the following way as 
> the standard CMIS needs:
> {code}
> select cmis:objectId, cmis:name from cmis:document 
> {code}
> The involved code is the following from the CMISRepositoryConnector:
> {code}
> ItemIterable results = session.query(cmisQuery, 
> false).getPage(10);
>   for (QueryResult result : results) {
> String id = result.getPropertyValueById(PropertyIds.OBJECT_ID);
> activities.addSeedDocument(id);
>   }
> {code}
> Should we solve this issue adding the cmis:objectId parameter if doesn't 
> exist in the select clause of the query?



--
This message was sent by Atlassian Jira
(v8.20.7#820007)


[jira] [Commented] (CONNECTORS-948) CMIS Connector returns couldn't encrypt null when the query doesn't include cmis:objectId

2014-06-05 Thread Karl Wright (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14018605#comment-14018605
 ] 

Karl Wright commented on CONNECTORS-948:


I think that if you have a good way to add the objectid result request if it's 
not present, that would be a fine way to solve the problem.  Can you propose a 
patch?


 CMIS Connector returns couldn't encrypt null when the query doesn't include 
 cmis:objectId
 -

 Key: CONNECTORS-948
 URL: https://issues.apache.org/jira/browse/CONNECTORS-948
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Affects Versions: ManifoldCF 1.6.1
Reporter: Piergiorgio Lucidi
Assignee: Piergiorgio Lucidi
Priority: Minor
   Original Estimate: 24h
  Remaining Estimate: 24h

 Manifold needs to know the objectId of a content to create a reference for it.
 This means that executing the following query there is no problem:
 {code}
 select * from cmis:document
 {code}
 But trying to execute a similar query:
 {code}
 select cmis:name from cmis:document
 {code}
 Manifold returns an error from OpenCMIS that is the following:
 {code}
 couldn't encrypt: null
 {code}
 This because the cmis:objectId is not added in the select clause and it is 
 needed to create a reference for this content inside the Manifold database.
 The workaround is to add the objectId in the query in the following way as 
 the standard CMIS needs:
 {code}
 select cmis:objectId, cmis:name from cmis:document 
 {code}
 The involved code is the following from the CMISRepositoryConnector:
 {code}
 ItemIterableQueryResult results = session.query(cmisQuery, 
 false).getPage(10);
   for (QueryResult result : results) {
 String id = result.getPropertyValueById(PropertyIds.OBJECT_ID);
 activities.addSeedDocument(id);
   }
 {code}
 Should we solve this issue adding the cmis:objectId parameter if doesn't 
 exist in the select clause of the query?



--
This message was sent by Atlassian JIRA
(v6.2#6252)