bugGNU Wget - Bugs: bug #20348, CWD not issued on FTP reconnect

 
 

bug #20348: CWD not issued on FTP reconnect

Submitted by:  Micah Cowan <micahcowan>
Submitted on:  Wed 04 Jul 2007 08:09:11 PM UTC  
 
Category: Program LogicSeverity: 2 - Minor
Priority: 5 - NormalStatus: Fixed In Repository
Privacy: PublicAssigned to: None
Originator Name: Roman GolovanovOpen/Closed: Closed
Release: 1.10.2Operating System: None
Reproducibility: NoneFixed Release: None
Planned Release: 1.11Regression: None
Work Required: 0 - HoursPatch Included: Yes

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Sun 05 Aug 2007 09:57:03 PM UTC, comment #7:

after applying included here patch encountered problem: infinite recursion. After fetching folder contents, wget continues creating subfolders with same name and tries to fetch listing.....

Anonymous
Sat 04 Aug 2007 01:44:18 AM UTC, comment #6:

Note that, in order to test this, fetching needs to be in "glob" mode, so pass it a *-wildcarded URL, and not the direct URL.

Confirmed that the current fix in place in the trunk has fixed the problem; closing.

Micah Cowan <micahcowan>
Mon 30 Jul 2007 11:37:14 PM UTC, comment #5:

Note: need to verify that the earlier fix didn't resolve this problem; it looks as if it might have.

Micah Cowan <micahcowan>
Mon 30 Jul 2007 11:34:07 PM UTC, comment #4:

Arg! Never mind, hadn't looked very closely, apparently. That problem is already fixed in current source; the provided patch is (hopefully) sufficient.

Micah Cowan <micahcowan>
Mon 30 Jul 2007 11:30:41 PM UTC, comment #3:

The patch provided is not the whole problem. In addition:

http://www.mail-archive.com/wget@sunsite.dk/msg09707.html

<<
This is inverted in ftp.c:

If not error, request cwd?
If error, cwd done?

It's backwards. Changing != to == solves the bug.
Thanks!
Jason

>>

Micah Cowan <micahcowan>
Wed 25 Jul 2007 05:59:50 PM UTC, comment #2:

If you need a fix for this right away, there is a patch included with this bug report, that is purported to solve the issue.

Micah Cowan <micahcowan>
Wed 25 Jul 2007 05:10:14 PM UTC, comment #1:

I´ve got the same problem on wget 1.10.2 win
you found any solution for that problem ?
Thank you for your help...

Jochen Ziegler <qmdu>
Wed 04 Jul 2007 08:09:11 PM UTC, original submission:

Hi,

I've download a large file from unstable ftp server, so I use "-c -T
10" for resuming download. But while resuming, WGET doesn't call CWD
to change remote directory, so FTP server cannot find file because it
search it in ftp root directory.

Client log:

--12:58:29-- ftp://user:password*@dneverov.net.ru/internet/TorrentCompleted/SGCD1.mdf
=> `dneverov.net.ru/internet/TorrentCompleted/SGCD1.mdf'
==> CWD /internet/TorrentCompleted ... done.
==> PASV ... done. ==> REST 7266304 ... done.
==> RETR SGCD1.mdf ... done.
Length: 844,911,312 (806M), 837,645,008 (799M) remaining

2% [=>
] 18,718,720
--.--K/s ETA 3:33:05

13:01:27 (63.01 KB/s) - Data connection: Connection timed out; Control
connection closed.
Retrying.

--13:01:33-- ftp://user:password*@dneverov.net.ru/internet/TorrentCompleted/SGCD1.mdf
(try: 2) => `dneverov.net.ru/internet/TorrentCompleted/SGCD1.mdf'
Connecting to dneverov.net.ru|85.21.237.132|:21... connected.
Logging in as romka ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD not required.
==> PASV ... done. ==> REST 18718720 ... done.
==> RETR SGCD1.mdf ...
No such file `SGCD1.mdf'.

Server log (failed request):

07/07/04 13:04:41, 89268, 85.140.166.18, romka, new connection from
85.140.166.18
07/07/04 13:04:42, 89268, 85.140.166.18, romka, 230 User user logged in.
07/07/04 13:04:42, 89268, 85.140.166.18, romka, SYST
07/07/04 13:04:42, 89268, 85.140.166.18, romka, 215 UNIX Type: L8
07/07/04 13:04:42, 89268, 85.140.166.18, romka, PWD
07/07/04 13:04:42, 89268, 85.140.166.18, romka, 257 "/" is current directory.
07/07/04 13:04:42, 89268, 85.140.166.18, romka, TYPE I
07/07/04 13:04:42, 89268, 85.140.166.18, romka, 200 Type set to I.
07/07/04 13:04:42, 89268, 85.140.166.18, romka, PASV
07/07/04 13:04:42, 89268, 85.140.166.18, romka, 227 Entering Passive
Mode (85,21,237,132,11,187)
07/07/04 13:04:42, 89268, 85.140.166.18, romka, REST 18718720
07/07/04 13:04:42, 89268, 85.140.166.18, romka, 350 Restarting at
18718720. Send STORE or RETRIEVE.
07/07/04 13:04:42, 89268, 85.140.166.18, romka, RETR SGCD1.mdf
07/07/04 13:04:42, 89268, 85.140.166.18, romka, asked to download
'/SGCD1.mdf' -> 'Empty://SGCD1.mdf' from 18718720 --> File not found.
07/07/04 13:04:42, 89268, 85.140.166.18, romka, 550 "SGCD1.mdf": no such file.

Micah Cowan <micahcowan>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #13260:  wget_1.10.2_bug_20348_cws_issue.patch added by micahcowan (550B - text/x-patch - patch submitted by reporter)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by qmdu (Posted a comment)
  • -unavailable- added by micahcowan (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 04 Aug 2007 01:44:18 AM UTCmicahcowanStatusNeed Info=>Fixed In Repository
      Open/ClosedOpen=>Closed
    Mon 30 Jul 2007 11:37:14 PM UTCmicahcowanStatusNone=>Need Info
    Wed 25 Jul 2007 05:59:50 PM UTCmicahcowanPlanned Release1.12=>1.11
    Fri 20 Jul 2007 11:48:29 PM UTCmicahcowanWork RequiredNone=>0 - Hours
    Fri 20 Jul 2007 11:41:48 PM UTCmicahcowanCategoryNone=>Program Logic
    Sat 07 Jul 2007 05:56:06 PM UTCmicahcowanPatch IncludedNone=>Yes
    Fri 06 Jul 2007 05:31:05 PM UTCmicahcowanAttached File-=>Added wget_1.10.2_bug_20348_cws_issue.patch, #13260
    Thu 05 Jul 2007 07:55:42 PM UTCmicahcowanSeverity3 - Normal=>2 - Minor
      ReleaseNone=>1.10.2
      Planned ReleaseNone=>1.12
    Wed 04 Jul 2007 08:09:11 PM UTCmicahcowanCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1