bugGNU Wget - Bugs: bug #53750, Regex are ignored with ftp

 
 

bug #53750: Regex are ignored with ftp

Submitter:  Spencer <quantum7>
Submitted:  Wed 25 Apr 2018 11:58:19 AM UTC
 
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  Ready for Merge
Privacy:  Public Assigned to:  darnir
Originator Name:  Open/Closed:  Open
Release:  1.19.4 Operating System:  None
Reproducibility:  Every Time Fixed Release:  None
Planned Release:  1.20 Regression:  None
Work Required:  None Patch Included:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Tue 13 Nov 2018 12:08:12 AM UTC, comment #2: 

I've sent a patch to the mailing lists that adds this support. It should be available in the next release.

Darshit Shah <darnir>
Project Administrator
Wed 25 Apr 2018 03:39:20 PM UTC, comment #1: 

You are right, the FTP code branch simply doesn't apply the regexes given on the command line.

Tim Ruehsen <rockdaboot>
Project Administrator
Wed 25 Apr 2018 11:58:19 AM UTC, original submission:  

The --reject-regex and --accept-regex options are ignored by wget during recursive FTP downloads.

I would expect the following command to reject all files, but instead it downloads the 9 small files from this public ftp server:

    wget -r -nd --reject-regex='.*' 'ftp://ftp.rcsb.org/pub/pdb/data/status/20070425/'

The problem has been reported a few times on stack overflow:
- https://unix.stackexchange.com/questions/379922/wget-regex-fails-getting-files-over-ftp
- https://unix.stackexchange.com/questions/439931/wget-regex-options-ignored-over-ftp

Tested with 1.18 on Gentoo and 1.19.4 from Homebrew on OS 10.12

Spencer <quantum7>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by darnir (Posted a comment)
  • -email is unavailable- added by rockdaboot (Posted a comment)
  • -email is unavailable- added by quantum7 (Submitted the item)
  •  

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-11-13 darnir StatusConfirmed Ready for Merge
        Assigned toNone darnir
        Operating SystemMac OS None
        Planned ReleaseNone 1.20
    2018-04-25 rockdaboot StatusNone Confirmed

    Back to the top


    Powered by Savane 3.9