Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 74227 invoked from network); 22 Jun 2006 23:04:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jun 2006 23:04:11 -0000 Received: (qmail 38693 invoked by uid 500); 22 Jun 2006 23:04:09 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 38664 invoked by uid 500); 22 Jun 2006 23:04:08 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 38644 invoked by uid 500); 22 Jun 2006 23:04:08 -0000 Received: (qmail 38641 invoked by uid 99); 22 Jun 2006 23:04:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 16:04:08 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 16:04:08 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id CF44C1A9842; Thu, 22 Jun 2006 16:03:47 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r416496 - in /jakarta/commons/proper/transaction/trunk: RELEASE-NOTES.txt src/java/org/apache/commons/transaction/file/FileResourceManager.java Date: Thu, 22 Jun 2006 23:03:47 -0000 To: commons-cvs@jakarta.apache.org From: joerg@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060622230347.CF44C1A9842@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: joerg Date: Thu Jun 22 16:03:46 2006 New Revision: 416496 URL: http://svn.apache.org/viewvc?rev=416496&view=rev Log: Fixed issue with deleteResource(..) and createResource(..) of FileResourceManager seen as read-only operations. Modified: jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java Modified: jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt URL: http://svn.apache.org/viewvc/jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt?rev=416496&r1=416495&r2=416496&view=diff ============================================================================== --- jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt (original) +++ jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt Thu Jun 22 16:03:46 2006 @@ -36,6 +36,7 @@ - Fixed bugzilla issue 35377. Synchronizing on Set activeTransactions while iterating over its items in OptimisticMapWrapper.copyChangesToConcurrentTransactions() for preventing ConcurrentModificationException. - Fixed bugzilla issue 37379. The construction of the transaction specific path is now done via a TransactionIdToPathMapper. +- Fixed issue with deleteResource(..) and createResource(..) of FileResourceManager seen as read-only operations. KNOWN ISSUES ------------ Modified: jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java?rev=416496&r1=416495&r2=416496&view=diff ============================================================================== --- jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java (original) +++ jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/file/FileResourceManager.java Thu Jun 22 16:03:46 2006 @@ -729,6 +729,7 @@ String txDeletePath = getDeletePath(txId, resourceId); String mainPath = getMainPath(resourceId); try { + getContext(txId).readOnly = false; // first undo change / create when there was one undoScheduledChangeOrCreate(txId, resourceId); @@ -769,7 +770,8 @@ String txChangePath = getChangePath(txId, resourceId); try { - + getContext(txId).readOnly = false; + // creation means either undoing a delete or actually scheduling a create if (!undoScheduledDelete(txId, resourceId)) { FileHelper.createFile(txChangePath); --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org