Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45A3E183C8 for ; Wed, 23 Dec 2015 04:29:47 +0000 (UTC) Received: (qmail 69420 invoked by uid 500); 23 Dec 2015 04:29:47 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 69356 invoked by uid 500); 23 Dec 2015 04:29:46 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 69115 invoked by uid 99); 23 Dec 2015 04:29:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Dec 2015 04:29:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9E27C2C1F54 for ; Wed, 23 Dec 2015 04:29:46 +0000 (UTC) Date: Wed, 23 Dec 2015 04:29:46 +0000 (UTC) From: "Srinivas Gannavarapu (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CMIS-964) FileNet 5.2.1 with IBM CMIS 2.0.3 - CollectionIterator.hasNext throws: method that was specified requires the getAllowableActions capability MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-964?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D150691= 32#comment-15069132 ]=20 Srinivas Gannavarapu commented on CMIS-964: ------------------------------------------- Setting includeAllowableActions explicitly to false in the context will wo= rk for queries with 'join' keywords Tested the below with opencmis0.13.0 (the same used for icn 2.0.3 fp5 OperationContext context =3D new OperationContextImpl(); =09context.setIncludeAllowableActions(false); =09String queryDoc =3D "select ld.id , f.AccountNr, ld.documentType, ld= .applicationId, ld.DateCreated from (ContractDocument ld left outer join Re= ferentialContainmentRelationship rcr on rcr.head =3D ld.this ) left outer j= oin ProductFolder f on rcr.tail =3D f.this where ld.ClientID =3D '990061780= '"; =09ItemIterable aDoc =3D session.query(queryDoc, true, con= text); =09Iterator i1Doc =3D aDoc.iterator(); =09while (i1Doc.hasNext()) { =09QueryResult fold =3D (QueryResult) i1Doc.next(); =09// ... =09} =20 > FileNet 5.2.1 with IBM CMIS 2.0.3 - CollectionIterator.hasNext throws: me= thod that was specified requires the getAllowableActions capability > -------------------------------------------------------------------------= ------------------------------------------------------------------- > > Key: CMIS-964 > URL: https://issues.apache.org/jira/browse/CMIS-964 > Project: Chemistry > Issue Type: Bug > Components: opencmis-client > Affects Versions: OpenCMIS 0.13.0 > Environment: Client - Windows 7, 64bit, java 1.7, eclipse > Server - FileNet 5.2.1 with IBM CMIS 2.0.3 on AIX7.1 > Reporter: Robert Val=C3=ADk > > The code is working on FileNet 5.1 with IBM CMIS 1.0 > {code} > Logger log =3D LoggerFactory.getLogger("doCmisSearchJoin"); > Session sess =3D createOpenCMISSession(USER_NAME, PASSWORD, REPOSITORY_VU= B); > String queryDoc =3D "select ld.id , f.AccountNr, ld.documentType, ld.app= licationId, ld.DateCreated from (ContractDocument ld left outer join Ref= erentialContainmentRelationship rcr on rcr.head =3D ld.this ) left outer = join ProductFolder f on rcr.tail =3D f.this where ld.ClientID =3D '99006= 1780'"; > ItemIterable aDoc =3D sess.query(queryDoc, true);=09 > Iterator i1Doc =3D aDoc.iterator(); > while (i1Doc.hasNext()) { > =09QueryResult fold =3D (QueryResult) i1Doc.next(); > =09// ... > } > {code} > When running on newer filenet, This exceprion is thrown: > {code} > Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptio= ns.CmisNotSupportedException: CIL2420: Your request cannot be completed.=20 > Explanation: The service method that was specified requires the getAllowa= bleActions capability, which is an optional capability that is not supporte= d by the repository.=20 > Action: Review the repository information that is returned by the getRepo= sitoryInfo service to determine which services are supported by the reposit= ory. > =09at org.apache.chemistry.opencmis.client.bindings.spi.webservices.Abstr= actWebServicesService.convertException(AbstractWebServicesService.java:113) > =09at org.apache.chemistry.opencmis.client.bindings.spi.webservices.Disco= veryServiceImpl.query(DiscoveryServiceImpl.java:88) > =09at org.apache.chemistry.opencmis.client.runtime.SessionImpl$6.fetchPag= e(SessionImpl.java:935) > =09at org.apache.chemistry.opencmis.client.runtime.util.AbstractIterator.= getCurrentPage(AbstractIterator.java:132) > =09at org.apache.chemistry.opencmis.client.runtime.util.CollectionIterato= r.hasNext(CollectionIterator.java:48) > =09at Main.doCmisSearchJoin(Main.java:993) > =09at Main.main(Main.java:107) > {code} > The Line 993 is {{while (i1Doc.hasNext())}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)