wget filename should (optionally) not include query part of URL

Bug #752532 reported by cybernet
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wget
Invalid
Undecided
auto-bug-wget
wget (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: wget

let's say i wanna install webmin
wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=kent
---
everything works except this->
2011-04-06 16:44:18 (188 KB/s) - `webmin_1.510-2_all.deb?use_mirror=kent' saved [14504260/14504260]

file was corectly and fully downloaded but the filename is the problem
webmin_1.510-2_all.deb?use_mirror=kent

if you could correct this in any way it would be nice, at least i won't have to rename the file everytime i download something from sourceforge or any site that uses query after file name

$ wget --version

GNU Wget 1.12 built on linux-gnu.

+digest +ipv6 +nls +ntlm +opie +md5/openssl +https -gnutls +openssl
-iri

Wgetrc:
    /etc/wgetrc (system)
Locale: /usr/share/locale
Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
    -DLOCALEDIR="/usr/share/locale" -I. -I../lib -g -O2
    -D_FILE_OFFSET_BITS=64 -O2 -g -Wall
Link: gcc -g -O2 -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wl,-Bsymbolic-functions
    /usr/lib/libssl.so /usr/lib/libcrypto.so -ldl -lrt ftp-opie.o
    openssl.o http-ntlm.o gen-md5.o ../lib/libgnu.a

Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <email address hidden>.
Currently maintained by Micah Cowan <email address hidden>.
Please send bug reports and questions to <email address hidden>.

----------------

$ uname -r
2.6.32-30-generic

cybernet (cybernet2u)
description: updated
Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

This bug is an upstream one and it would be quite helpful if somebody experiencing it could send the bug the to the people writing the software. You can learn more about how to do this for various upstreams at https://wiki.ubuntu.com/Bugs/Upstream. Thanks in advance!

Revision history for this message
cybernet (cybernet2u) wrote :

a mail was sent to <email address hidden> with a link to this bug

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Thanks for sending it upstream.

Changed in wget (Ubuntu):
status: New → Confirmed
summary: - wget filename wrong
+ wget filename should (optionally) not include query part of URL
Revision history for this message
cybernet (cybernet2u) wrote :

this is the response i got back from Ángel González <email address hidden>

There's an option available for that: --trust-server-names

wget --trust-server-names
http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=kent
will give you the webmin_1.510-2_all.deb filename that you expect.
Note however that when using --trust-server-names a malicious server
could also provide you with a bad filename such as .profile which could
get executed automatically when downloaded in home.

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Thanks, I'm closing the bug report then.

Changed in wget:
status: New → Invalid
Changed in wget (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

  • auto-bug-wget Edit

Bug watches keep track of this bug in other bug trackers.