Return-Path: Delivered-To: apmail-maven-archiva-dev-archive@locus.apache.org Received: (qmail 52306 invoked from network); 22 Oct 2007 01:12:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Oct 2007 01:12:00 -0000 Received: (qmail 73835 invoked by uid 500); 22 Oct 2007 01:11:48 -0000 Delivered-To: apmail-maven-archiva-dev-archive@maven.apache.org Received: (qmail 73791 invoked by uid 500); 22 Oct 2007 01:11:48 -0000 Mailing-List: contact archiva-dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: archiva-dev@maven.apache.org Delivered-To: mailing list archiva-dev@maven.apache.org Received: (qmail 73782 invoked by uid 99); 22 Oct 2007 01:11:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Oct 2007 18:11:48 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [210.50.76.235] (HELO mx06.syd.iprimus.net.au) (210.50.76.235) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Oct 2007 01:11:52 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAL6VG0c6sk/b/2dsb2JhbAAMkC8 X-IronPort-AV: E=Sophos;i="4.21,308,1188741600"; d="scan'208";a="73230837" Received: from 219.177.dsl.syd.iprimus.net.au (HELO [192.168.237.213]) ([58.178.79.219]) by smtp06.syd.iprimus.net.au with ESMTP; 22 Oct 2007 11:10:28 +1000 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <471BF1F0.20501@exist.com> References: <20071021173010.BD08B1A9832@eris.apache.org> <74DEE571-AA04-4AFE-91DF-F68D5BC05104@apache.org> <471BF1F0.20501@exist.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <64A3099B-E2B3-49B0-99FB-AD907A489EB5@apache.org> Content-Transfer-Encoding: 7bit From: Brett Porter Subject: Re: svn commit: r586919 - in /maven/archiva/trunk: archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/ archiva-database/src/main/java/org/apache/maven/archiva/database/ archiva-database/src/m... Date: Mon, 22 Oct 2007 11:10:25 +1000 To: archiva-dev@maven.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On 22/10/2007, at 10:42 AM, Maria Odea Ching wrote: > Hi Brett, > > I thought that if there was a problem cleaning up the repository > data, the delete of the repo shouldn't proceed.. or should it? :-) That makes sense - I just wanted to check if there was anything else. My only concern is the saveConfiguration method returning something other than success and the repository will still be configured but most of the data deleted. I'm not sure if that's possible, though :) Anyway, this should be fine for now - if we do push these back from the web layer we should ensure we have some more testing around the exception cases. Thanks, Brett > > Thanks, > Deng > > Brett Porter wrote: >> Hi Deng, >> >> On 22/10/2007, at 3:30 AM, oching@apache.org wrote: >> >>> @@ -89,13 +105,12 @@ >>> try >>> { >>> Configuration configuration = >>> archivaConfiguration.getConfiguration(); >>> + cleanupRepositoryData( existingRepository ); >>> removeRepository( repoid, configuration ); >>> result = saveConfiguration( configuration ); >>> >>> if ( result.equals( SUCCESS ) ) >>> { >>> - cleanupRepositoryData( existingRepository ); >>> - >> >> Can you just clarify why this was moved?