bugGNU Wget - Bugs: bug #24347, file://

 
 

bug #24347: file://

Submitter:  Micah Cowan <micahcowan>
Submitted:  Mon 22 Sep 2008 05:18:20 PM UTC
   
 
Category:  Feature Request Severity:  2 - Minor
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Operating System:  None
Reproducibility:  None Fixed Release:  None
Planned Release:  1.15 Regression:  None
Work Required:  1 - Days Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 22 Jul 2009 09:09:56 PM UTC, comment #2: 

I'd suggest allowing file:// by default, but not allowing recursion to fetch a file:// URI, whether the source page comes from http:// or file:// or something else.  wget could then have a --force-file-recursion or similar, if anyone cared.  Bonus if wget can allow file links but only to files under the same prefix as the original file.

But even the basic support for file:// with no recursion allowed would still prove useful, albeit not for the use case described in the linked mail.

Anonymous
Mon 22 Sep 2008 05:28:23 PM UTC, comment #1: 

Support for this may introduce security issues, care is needed.

For instance, file:// should never be respected when it comes from the web. Even on local machine, it could be problematic to use it on files writable by other users (as they can then craft links to download privileged files with upgraded permissions). Perhaps files that are only readable for root should always be skipped, or wget should require a "--force" sort of option if the current mode can result in more permissive settings on the downloaded file.

For such reasons, perhaps it would be wise to make this a configurable option. It might also be prudent to enable an option for file:// to be disallowed for root.

Micah Cowan <micahcowan>
Mon 22 Sep 2008 05:18:20 PM UTC, original submission:  
Micah Cowan <micahcowan>

 

(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 micahcowan (Submitted the item)
  •  

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code