Issue Details (XML | Word | Printable)

Key: NET-87
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Jason Knight
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Net

FTP task cannot get files containing spaces in their name

Created: 15/May/04 02:07 AM   Updated: 20/Sep/07 05:31 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Operating System: All
Platform: All

Bugzilla Id: 28987


 Description  « Hide
FTP Server is running Windows 2000 Server using IIS with UNIX Directory Style
Listings.

Tested clients are Windows XP Professional (Service Pack 1) and Red Hat
Enterprise Linux ES 3.0.

Here is a copy of the FTP task.

<ftp server="${ftp.server}" userid="${ftp.user.name}"
password="${ftp.user.password}" remotedir="${data.dir.remote}" action="get"
depends="yes" ignoreNoncriticalErrors="yes" skipFailedTransfers="yes"
preservelastmodified="yes">
<fileset dir="${data.dir.local}">
<include name="Raster/ComponentTest/TestData/Format/**"/>
</fileset>
</ftp>

Below is a copy of the Build Exception output (using JBuilder 8 and the Ant
1.6.1 libraries).

BUILD FAILED
\\Tashi\twebunix1\scripts\updateFromQALab_Server.xml:13: could not date test
remote file: 550 Raster/ComponentTest/TestData/Format/image2/Copy: The system
cannot find the file specified.
at org.apache.tools.ant.taskdefs.optional.net.FTP.isUpToDate(FTP.java:1580)
at org.apache.tools.ant.taskdefs.optional.net.FTP.getFile(FTP.java:1782)
at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java:1339)
at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java:1388)
at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2016)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.Main.start(Main.java:147)
at org.apache.tools.ant.Main.main(Main.java:230)

Below is a copy of the output using built-in ftp clients.

ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
-r-xr-xr-x 1 owner group 8245 May 14 3:08 Band_1.xml
-r-xr-xr-x 1 owner group 8192 Oct 25 2002 Copy of
tif1_1n_ui_landcgi.tif.xml
226 Transfer complete.
ftp: 6152 bytes received in 0.00Seconds 6152000.00Kbytes/sec.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Henri Yandell made changes - 16/May/06 09:20 AM
Field Original Value New Value
issue.field.bugzillaimportkey 28987 12340197
Henri Yandell made changes - 16/May/06 11:48 AM
Key COM-46 NET-87
Project Commons [ 12310458 ] Commons Net [ 12310487 ]
Component/s Net [ 12311127 ]
Affects Version/s unspecified [ 12311647 ]
Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
Henri Yandell made changes - 20/Sep/07 05:31 AM
Status Resolved [ 5 ] Closed [ 6 ]