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 2012/12/14 15:55:40 UTC
[Bug 54295] New: wasted work in
FTP.FTPDirectoryScanner.checkRemoteSensitivity
https://issues.apache.org/bugzilla/show_bug.cgi?id=54295
Bug ID: 54295
Summary: wasted work in
FTP.FTPDirectoryScanner.checkRemoteSensitivity
Product: Ant
Version: 1.8.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: notifications@ant.apache.org
Reporter: nistor1@illinois.edu
Classification: Unclassified
Created attachment 29754
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29754&action=edit
patch
The problem appears in version 1.8.4 and in revision 1421898. I
attached a one-line patch that fixes it.
In method "FTP.FTPDirectoryScanner.checkRemoteSensitivity", the
innermost loop over "array" should call "break" immediately after
"candidateFound" is set to "false". All the iterations after
"candidateFound" is set to "false" do not perform any useful work, at
best they just set "candidateFound" again to "false".
There are other similar loops in Ant, and these loops call "break"
immediately after the boolean is set, just like in the proposed patch
(e.g., loops in methods "FTP.findFileName", "SelectorUtils.match"
"ChainReaderHelper.expandReader", "AntClassLoader.isParentFirst",
"WebLogicHotDeploymentTool.isActionValid", "P4Resolve.setResolvemode",
FTPTaskMirrorImpl.findFileName, etc).
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54295] wasted work in
FTP.FTPDirectoryScanner.checkRemoteSensitivity
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54295
Antoine Levy-Lambert <an...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|1.9.0 |1.9.1
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54295] wasted work in
FTP.FTPDirectoryScanner.checkRemoteSensitivity
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54295
Adrian Nistor <ni...@illinois.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nistor1@illinois.edu
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54295] wasted work in
FTP.FTPDirectoryScanner.checkRemoteSensitivity
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54295
Antoine Levy-Lambert <an...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|1.8.4 |1.9.0
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54295] wasted work in
FTP.FTPDirectoryScanner.checkRemoteSensitivity
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54295
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |1.9.4
--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
svn revision 1554813
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54295] wasted work in
FTP.FTPDirectoryScanner.checkRemoteSensitivity
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54295
Jesse Glick <jg...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
CC| |jglick@apache.org
--
You are receiving this mail because:
You are the assignee for the bug.