Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 46461 invoked from network); 30 Nov 2007 22:11:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2007 22:11:08 -0000 Received: (qmail 41667 invoked by uid 500); 30 Nov 2007 22:10:55 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 41229 invoked by uid 500); 30 Nov 2007 22:10:54 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 41220 invoked by uid 99); 30 Nov 2007 22:10:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 14:10:54 -0800 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; Fri, 30 Nov 2007 22:11:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 610D6714231 for ; Fri, 30 Nov 2007 14:10:43 -0800 (PST) Message-ID: <29669305.1196460643393.JavaMail.jira@brutus> Date: Fri, 30 Nov 2007 14:10:43 -0800 (PST) From: "Mark Bryan Yu (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (IO-141) [IO][PATCH] Infinite loop on FileUtils.copyDirectory when the destination directory is within the source directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [IO][PATCH] Infinite loop on FileUtils.copyDirectory when the destination directory is within the source directory ------------------------------------------------------------------------------------------------------------------ Key: IO-141 URL: https://issues.apache.org/jira/browse/IO-141 Project: Commons IO Issue Type: Bug Components: Utilities Affects Versions: 1.3.2 Environment: Win XP Reporter: Mark Bryan Yu Priority: Critical When you attempt to copy a directory and the destination directory is inside the source directory an inifinite loop occurs in the copyDirectory causing Commons-IO to create a folder w/o stopping until its reaches OS limitation. This code will recreate the bug: FileUtils.copyDirectory(new File("C:\\temp\\test-io\\a\\."), new File("C:\\temp\\test-io\\a\\." + File.separator + new Date().getTime())); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.