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 C893D10765 for ; Mon, 2 Jun 2014 21:59:01 +0000 (UTC) Received: (qmail 91670 invoked by uid 500); 2 Jun 2014 21:59:01 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 91534 invoked by uid 500); 2 Jun 2014 21:59:01 -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 91430 invoked by uid 99); 2 Jun 2014 21:59:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 21:59:01 +0000 Date: Mon, 2 Jun 2014 21:59:01 +0000 (UTC) From: "Jeff Potts (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CMIS-809) cmislib applyACL method has multiple issues MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jeff Potts created CMIS-809: ------------------------------- Summary: cmislib applyACL method has multiple issues Key: CMIS-809 URL: https://issues.apache.org/jira/browse/CMIS-809 Project: Chemistry Issue Type: Bug Components: python-cmislib Affects Versions: cmislib 0.5.1 Reporter: Jeff Potts The testApplyACL() unit test is failing against Apache Chemistry 0.11.0. In addition, certain use cases are not handled properly, such as adding two different permissions for the same principal. Currently only the last one in the ACL is applied. This was originally implemented by accepting an ACL object that represented the ACL the caller wanted on the document, then doing a PUT against the object's ACL. On further review of the spec, the applyACL method should be refactored to accept an add list and a remove list. As part of this, the case where duplicate principals are added to the same list needs to be incorporated. The unit test could also be beefed up. -- This message was sent by Atlassian JIRA (v6.2#6252)