ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49485] New: Touch tasks ignores errors from java.io.File.setLastModified under some conditions
Date Tue, 22 Jun 2010 01:25:22 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49485

           Summary: Touch tasks ignores errors from
                    java.io.File.setLastModified under some conditions
           Product: Ant
           Version: 1.8.1
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: mike.dobozy@amentra.com


The ant touch task currently ignores error conditions coming back from the
java.io.File.setLastModified call under some conditions.

To reproduce, take the following steps. Assume for the sake of the test that
there are two users - userA and userB - in a group called "testusers".

1. Create a file called foo.txt. Ensure that this file is owned by userA and
group writeable - I used 664 as the permissions mask.
2. As userB, run an ant script containing <touch file="foo.txt" />.

The script will execute fully, but fail silently - the failure result coming
back from the java.io.File.setLastModified call inside touch is ignored. The
failure in this case is appropriate; however, the user should be alerted to the
issue.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message