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 37C283B53 for ; Fri, 6 May 2011 06:50:47 +0000 (UTC) Received: (qmail 65978 invoked by uid 500); 6 May 2011 06:50:46 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 65838 invoked by uid 500); 6 May 2011 06:50: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 65741 invoked by uid 99); 6 May 2011 06:50:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 06:50:45 +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; Fri, 06 May 2011 06:50:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5F6C1C3992 for ; Fri, 6 May 2011 06:50:03 +0000 (UTC) Date: Fri, 6 May 2011 06:50:03 +0000 (UTC) From: "Patrick Balm (JIRA)" To: dev@chemistry.apache.org Message-ID: <370149698.27372.1304664603387.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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CMIS-364?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D130297= 89#comment-13029789 ]=20 Patrick Balm commented on CMIS-364: ----------------------------------- Thanks Florian. For future searches: The Alfresco properties in question are: system.acl.maxPermissionCheckTimeMillis=3D10000 # The maximum number of results to perform permission checks against system.acl.maxPermissionChecks=3D1000 /patrick > 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 > Assignee: Florian M=C3=BCller > > 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