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 C92E22FAA for ; Thu, 5 May 2011 19:21:42 +0000 (UTC) Received: (qmail 80717 invoked by uid 500); 5 May 2011 19:21:42 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 80680 invoked by uid 500); 5 May 2011 19:21:42 -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 80672 invoked by uid 99); 5 May 2011 19:21:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 19:21:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 19:21:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 28627C3CD5 for ; Thu, 5 May 2011 19:21:03 +0000 (UTC) Date: Thu, 5 May 2011 19:21:03 +0000 (UTC) From: =?utf-8?Q?Florian_M=C3=BCller_=28JIRA=29?= To: dev@chemistry.apache.org Message-ID: <860381196.25645.1304623263162.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <82951196.22774.1304540883415.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CMIS-364) Folder getChildren() returns less than available folders 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-364?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D130295= 16#comment-13029516 ]=20 Florian M=C3=BCller commented on CMIS-364: ------------------------------------- getChildren() is implemented with a Lucene query in Alfresco. Check your Lu= cene configuration. It's not an OpenCMIS issue. > Folder getChildren() returns less than available folders > -------------------------------------------------------- > > Key: CMIS-364 > URL: https://issues.apache.org/jira/browse/CMIS-364 > Project: Chemistry > Issue Type: Bug > Components: opencmis-client > Affects Versions: OpenCMIS 0.3.0 > Environment: Alfresco 3.4d (community) + postgresql 8.4 on Linux > OpenCMIS 0.3-SNAPSHOT > Reporter: Patrick Balm > > Hi,=20 > I am not sure if this a bug or my abuse of the opencmis API so here goes:= =20 > Environment:=20 > Alfresco 3.4d (community) with over 2000 folders that need to be read and= handled via OpenCmis.=20 > The following code only returns 1000 folders, instead of the approx. 2000= + folders in Alfresco.=20 > I tried with or without OperationContext.=20 > Do I need to use a different API call or is it a bug?=20 > public List getFolderList(Folder f) {=20 > List folders =3D new ArrayList();=20 > OperationContext oc =3D getSession().getDefaultContext();=20 > System.out.println("OperationContext");=20 > System.out.println("----------------");=20 > System.out.println("oc.getMaxItemsPerPage() =3D " + oc.getMaxItem= sPerPage());=20 > //output returns 100 > oc.setMaxItemsPerPage(250);=20 > getSession().setDefaultContext(oc);=20 > System.out.println("oc.getMaxItemsPerPage() =3D " + oc.getMaxItem= sPerPage());=20 > //output returns 250 > // ItemIterable folderIterator =3D f.getChildren();= =20 > ItemIterable folderIterator =3D f.getChildren(oc);= =20 > Iterator it =3D folderIterator.iterator();=20 > long l=3D1;=20 > while (it.hasNext()) {=20 > Folder folder =3D (Folder)it.next();=20 > folders.add(folder);=20 > log.info("Folder: '"+folder.getName()+"'");=20 > l++;=20 > }=20 > log.info("Total "+l+" folders in directory");=20 > return folders;=20 > }=20 > //returns 1000 folders instead of 2000+ -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira