You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/05/27 17:59:33 UTC
DO NOT REPLY [Bug 45081] New: condition doesn'
t pay attention to whether a file is readable.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45081
Summary: <available> condition doesn't pay attention to whether a
file is readable.
Product: Ant
Version: 1.7.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: kascice@mail.nih.gov
If a file is visible in the filesystem but there is no authorization to
actually
read the file, available still returns true.
My opinion on this is.... the <available> condition should either check whether
the file is actually readable or else document explicitly that is doesn't check
this and there should be an additional condition for checking whether the file
is readable.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45081] condition doesn't pay attention
to whether a file is readable.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45081
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |notifications@ant.apache.org
AssignedTo|notifications@ant.apache.org|bodewig@apache.org
Severity|normal |enhancement
OS/Version|Windows XP |All
Platform|PC |All
Target Milestone|--- |1.8.0
--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2008-08-08 07:44:17 PST ---
I think readable and writable conditions would be good ideas.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
DO NOT REPLY [Bug 45081] condition doesn't pay attention
to whether a file is readable.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45081
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Stefan Bodewig <bo...@apache.org> 2008-08-13 08:58:37 PST ---
I've added <readable/> and <writable/> selectors with svn revision 685593 - if
you replace FileProvider with FileResource it should compile against 1.7.x as
well.
These could be used inside of a isfileselected condition, something like
<condition ...>
<isfileselected file="file-i-am-interested-in">
<readable/>
<isfileselected>
</condition>
a bit more verbose than readable/writable conditions but this way we open up
more opportunities for the code to be useful.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.