Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C27C0D8D7 for ; Fri, 5 Oct 2012 19:00:05 +0000 (UTC) Received: (qmail 22029 invoked by uid 500); 5 Oct 2012 19:00:05 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 21991 invoked by uid 500); 5 Oct 2012 19:00:05 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 21923 invoked by uid 99); 5 Oct 2012 19:00:05 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 19:00:05 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 4A1851C15F3; Fri, 5 Oct 2012 19:00:02 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2268000284869758517==" MIME-Version: 1.0 Subject: Re: Review Request: CLOUDSTACK-84: FIX NPE error in listRouter etc. after deleting a user project. From: "Alena Prokharchyk" To: "Alena Prokharchyk" , "Kishan Kavala" , "Alex Huang" , "Abhinandan Prateek" , "Nitin Mehta" Cc: "Rohit Yadav" , "cloudstack" Date: Fri, 05 Oct 2012 19:00:02 -0000 Message-ID: <20121005190002.22633.91144@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Alena Prokharchyk" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/7168/ X-Sender: "Alena Prokharchyk" References: <20120924181204.18992.66570@reviews.apache.org> In-Reply-To: <20120924181204.18992.66570@reviews.apache.org> Reply-To: "Alena Prokharchyk" --===============2268000284869758517== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > On Sept. 24, 2012, 6:12 p.m., Alex Huang wrote: > > Does this need to go into 4.0? > = > Rohit Yadav wrote: > Yes, as per fix version on https://issues.apache.org/jira/browse/CLOU= DSTACK-84 > But, whatever you advise. This fix will break the following case: * have removed account. The removed account has some detached volume and us= er vm that weren't cleaned up yet * As ROOT admin, attach account's volume to account's vm. The patch makes i= t possible while we should allow just LISTING the resources belonging to th= e removed account, but never allow to manipulate/create/delete them. = We have to think about some other fix. As far as I remember, account/domain= checkers are never called when we do list commands through the API as we a= lways do Joins with account table instead of running account check on each = and every object returned with the list response. = - Alena ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/7168/#review11841 ----------------------------------------------------------- On Sept. 19, 2012, 3:38 p.m., Rohit Yadav wrote: > = > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/7168/ > ----------------------------------------------------------- > = > (Updated Sept. 19, 2012, 3:38 p.m.) > = > = > Review request for cloudstack, Abhinandan Prateek, Kishan Kavala, Nitin M= ehta, Alena Prokharchyk, and Alex Huang. > = > = > Description > ------- > = > Domain ACL information should be valid even if account entry is marked > removed. Patch fixes how account is obtained based on accountId, it > finds among those entries which are marked deleted. > = > In case of project deletion, the project is marked removed first and > then each of its elements are cleared/cleaned/deleted. While deleting > network and router it failed because ACL only checks accounts which are > not marked deleted. > = > Download original patch and git am : http://patchbin.baagi.org/p?i= d=3D40pdym > = > = > This addresses bug CLOUDSTACK-84. > = > = > Diffs > ----- > = > server/src/com/cloud/acl/DomainChecker.java 6bc2cd3 = > server/src/com/cloud/user/dao/AccountDao.java 3b7fa66 = > server/src/com/cloud/user/dao/AccountDaoImpl.java 7300bb1 = > = > Diff: https://reviews.apache.org/r/7168/diff/ > = > = > Testing > ------- > = > = > Thanks, > = > Rohit Yadav > = > --===============2268000284869758517==--