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 B849610459 for ; Mon, 24 Mar 2014 20:29:22 +0000 (UTC) Received: (qmail 73336 invoked by uid 500); 24 Mar 2014 20:29:19 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 73280 invoked by uid 500); 24 Mar 2014 20:29:18 -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 73255 invoked by uid 99); 24 Mar 2014 20:29:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Mar 2014 20:29:16 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andy.hind@alfresco.com designates 207.126.144.131 as permitted sender) Received: from [207.126.144.131] (HELO eu1sys200aog111.obsmtp.com) (207.126.144.131) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Mar 2014 20:29:10 +0000 Received: from mail-qg0-f45.google.com ([209.85.192.45]) (using TLSv1) by eu1sys200aob111.postini.com ([207.126.147.11]) with SMTP ID DSNKUzCVgFG4W+U9r0dC7NXj87JWWSgS4466@postini.com; Mon, 24 Mar 2014 20:28:49 UTC Received: by mail-qg0-f45.google.com with SMTP id j5so18281265qga.4 for ; Mon, 24 Mar 2014 13:28:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:content-type; bh=GF681/6Tk0OVjDTr4tRO0+fCWZyZMS9oxMNw+G1KCNw=; b=fcVxHXmEemd8faO9TxEtH64tTarOs2W4A/VZNZE+HnhqXmTHRLcqDtnIRWsG5C15/g Q/mc6m2eUsLqRoRow7i6RBP7S9Jc0M5o9ZcQUT2t19GAwWtZ7RwhdyFDpTApxKlTRhbk D/1+lT+NzwGDf1fPwCAZ2SfO788cF/CoZaSHYBCizxBB2LE8r6PWnutxnd7UO4s5k/kH Fm3uNg85ahR3s0dJsIsXwXZ3nqLy4UFOQFHUiGHEQDdehLvHWvEX4nps9Vet0i+lrgkM rIvBwErEy9JflDAC7p8cplgFMPE1uMkM7CthYKTGDzMumRvuy3yQ3t5JatzpoUUsKEEH RS8Q== X-Gm-Message-State: ALoCoQl15Jfhh/HWoKwSKqnJHHiPb8vorBC0Q9VekOIsTUG8PUXPRSPtmWGSN7RL2OA8jJFGA2j9pTmoWQojlfDqza+ZL1f8J+SsohJk0XPbYVFyNQwRyxCWzogRN4UIdAcRQFVTBaANTHE1GM1sJknVPhfgMngtYA16txVwsZbvhGn8aR+28Vg= X-Received: by 10.140.92.6 with SMTP id a6mr72602465qge.34.1395692928102; Mon, 24 Mar 2014 13:28:48 -0700 (PDT) X-Received: by 10.140.92.6 with SMTP id a6mr72602454qge.34.1395692927958; Mon, 24 Mar 2014 13:28:47 -0700 (PDT) From: Andrew Hind References: In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJdK05L9kHW/Lm5vGisTwJ+6m1+LJnU6AYA Date: Mon, 24 Mar 2014 20:29:21 -0000 Message-ID: <14797f1c606ef91c5410a04028d16590@mail.gmail.com> Subject: RE: getTotalNumItems() returning wrong value To: dev@chemistry.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Bindu Yes there are plans to add support for any-deny-denies. However, getTotalNumItems() is still going to give an "eventually consistent" answer Andy -----Original Message----- From: Bindu Wavell [mailto:bwavell@ziaconsulting.com] Sent: 24 March 2014 18:38 To: dev@chemistry.apache.org Subject: RE: getTotalNumItems() returning wrong value Andy, Are there any plans to move the any-deny-denies processing into SOLR so that we can have both any-deny-denies and getTotalNumItems() that works at the same time? -- Bindu --- Hi We are pragmatic here. If you are using SOLR and have any-deny-denies turned off you should get the total number. Any other case you will not. If you use the DB or lucene or SOLR+any-deny-denies some or all permission enforcement is done post query. If you do Select * from cmis:document and you have 100M docs in your repo do you want to do 100M acl evals ? We do enough to fulfil the page and see if there is one more. Querying with SOLR can do permission evaluation in query. You can choose the configuration options where this will work. It is not the default. Andy