Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 85811 invoked from network); 12 Aug 2010 12:54:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Aug 2010 12:54:44 -0000 Received: (qmail 90095 invoked by uid 500); 12 Aug 2010 12:54:44 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 90017 invoked by uid 500); 12 Aug 2010 12:54:42 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 90010 invoked by uid 99); 12 Aug 2010 12:54:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 12:54:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 12:54:39 +0000 Received: from thor.apache.org (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7CCsI05026366 for ; Thu, 12 Aug 2010 12:54:18 GMT Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id o7CCsHPb026365; Thu, 12 Aug 2010 08:54:17 -0400 (EDT) Date: Thu, 12 Aug 2010 08:54:17 -0400 (EDT) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 49744] New: new org.apache.tools.tar.TarEntry("/").isDirectory() returns false X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core X-Bugzilla-Keywords: X-Bugzilla-Severity: regression X-Bugzilla-Who: christian@schlichtherle.de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=49744 Summary: new org.apache.tools.tar.TarEntry("/").isDirectory() returns false Product: Ant Version: 1.8.1 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: Core AssignedTo: notifications@ant.apache.org ReportedBy: christian@schlichtherle.de This is a regression since Ant 1.7.1. In Ant 1.8.1, the constructor public TarEntry(String name) and others call the method normalizeFileName in order to (you guessed it) normalize the file name. However, this method normalizes "/" into "". As a consequence, the method isDirectory() returns false for this entry. Rationale: A TarEntry with the name "/" is created by TrueZIP 6.7 (https://truezip.dev.java.net) as a virtual root directory. This TarEntry is actually never written to the TAR file, but solely used in order to associate meta data with the TAR file itself. Later on, the last modification time of this virtual root directory is used to post-fix the last modification time of the TAR file itself. Work-around: Call the newly introduced constructor public TarEntry(String name, boolean preserveLeadingSlashes) with true as its boolean parameter. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.