Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 10935 invoked from network); 30 Jul 2007 21:53:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jul 2007 21:53:14 -0000 Received: (qmail 35424 invoked by uid 500); 30 Jul 2007 21:53:13 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 35395 invoked by uid 500); 30 Jul 2007 21:53:13 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 35386 invoked by uid 99); 30 Jul 2007 21:53:13 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2007 14:53:13 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2007 21:53:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D575F7141F4 for ; Mon, 30 Jul 2007 14:52:52 -0700 (PDT) Message-ID: <30010195.1185832372848.JavaMail.jira@brutus> Date: Mon, 30 Jul 2007 14:52:52 -0700 (PDT) From: "Ramin Moazeni (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2925) Prevent export from overwriting existing files In-Reply-To: <9019766.1184203084453.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ramin Moazeni updated DERBY-2925: --------------------------------- Attachment: DERBY-2925v5.stat DERBY-2925v5.diff Hello I am attaching a possible fix for the AccessControl exception that is being thrown. The fix contains changing the order for the tests that are being executed in suites/AllPackages.java. I will log a separate issue for fixing possible issues with the tests that might change the policy and have problem restoring the policy. Thanks Ramin > Prevent export from overwriting existing files > ---------------------------------------------- > > Key: DERBY-2925 > URL: https://issues.apache.org/jira/browse/DERBY-2925 > Project: Derby > Issue Type: Sub-task > Components: Security, Tools > Affects Versions: 10.1.2.1, 10.2.2.0, 10.3.1.3, 10.4.0.0 > Reporter: Kathey Marsden > Assignee: Ramin Moazeni > Attachments: DERBY-2925v0.diff, DERBY-2925v0.stat, DERBY-2925v1.diff, DERBY-2925v1.stat, DERBY-2925v2.diff, DERBY-2925v2.stat, DERBY-2925v3.diff, DERBY-2925v3.stat, DERBY-2925v4.diff, DERBY-2925v4.stat, DERBY-2925v5.diff, DERBY-2925v5.stat, releaseNotev0.html > > > Export should not overwrite existing files, but rather insist that the user remove them before writing to the file. This will help prevent accidental or intentional corruption of the database with export. This may introduce a compatibility issue with export but because export is usually an attended utility and not typically invoked as part of an application, I think the risk is worth the additional security this will provide. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.