[bug #67639] --backup breaks retry
Trebus <[email protected]> Mon, 27 Oct 2025 18:19:46 -0400 (EDT)
| Newsgroups | gmane.comp.web.wget.general |
|---|---|
| Message-ID | <[email protected]> |
--8323329-632248271-1761603586=:2501111
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline
URL:=0A <https://savannah.gnu.org/bugs/?67639>=0A=0A Summa=
ry: --backup breaks retry=0A Group: GNU Wget=0A =
Submitter: trebus=0A Submitted: Mon 27 Oct 2025 10:19:38=
PM UTC=0A Category: Program Logic=0A Severit=
y: 3 - Normal=0A Priority: 5 - Normal=0A St=
atus: None=0A Privacy: Public=0A Assigned to: N=
one=0A Originator Name:=0A Originator Email:=0A =
Open/Closed: Open=0A Discussion Lock: Any=0A Releas=
e: 1.20=0A Operating System: GNU/Linux=0A Reproducibility: N=
one=0A Fixed Release: None=0A Planned Release: None=0A =
Regression: None=0A Work Required: None=0A Pa=
tch Included: None=0A=0A=0A ____________________________________________=
___________=0A=0AFollow-up Comments:=0A=0A=0A------------------------------=
-------------------------=0ADate: Mon 27 Oct 2025 10:19:38 PM UTC By: Trebu=
s <trebus>=0AWhen enabling --backup, an automatic retry is broken.=0A=0ASce=
nario=0A1. A large file download is attempted with --backup enabled=0A2. Th=
e download is interrupted=0A3. wget retries and downloads the remaining par=
tial file=0AThe result is now 2 partial files, the first partial file is re=
named with the=0A.1 suffix, the second part retains the original name.=0A=
=0AThe partial files, when concatenated are a binary match with the full fi=
le,=0Athe HTTP headers comply with RFC 9110=0A=0AThe logic ideally should i=
dentify that the download to be attempted is a=0Aresume, thus not backup th=
e file, but append to it as is done without=0A--backup.=0A=0AThe full comma=
nd line ( with obfuscated URL )=0A=0Awget --retry-connrefused --waitretry=
=3D300 --read-timeout=3D30 --timeout=3D25 -t 3=0A--backups=3D5 --server-res=
ponse -a ${HOME}/wget.log --directory=3Dcsv=0Ahttps://the.server.dummy/dir/=
file.zip=0A=0A=0AVersion details=0A$ wget --version=0AGNU Wget 1.21.4 built=
on linux-gnu.=0A=0A-cares +digest -gpgme +https +ipv6 +iri +large-file -me=
talink +nls =0A+ntlm +opie +psl +ssl/openssl =0A=0AWgetrc: =0A /etc/wget=
rc (system)=0ALocale: =0A /usr/share/locale =0ACompile: =0A gcc -DHAV=
E_CONFIG_H -DSYSTEM_WGETRC=3D"/etc/wgetrc" =0A -DLOCALEDIR=3D"/usr/share=
/locale" -I. -I../../src -I../lib =0A -I../../lib -Wdate-time -D_FORTIFY=
_SOURCE=3D3 -DHAVE_LIBSSL -DNDEBUG =0A -g -O2 -fno-omit-frame-pointer -m=
no-omit-leaf-frame-pointer =0A -ffile-prefix-map=3D/build/wget-LWnKWI/wg=
et-1.21.4=3D. -flto=3Dauto =0A -ffat-lto-objects -fstack-protector-stron=
g -fstack-clash-protection =0A -Wformat -Werror=3Dformat-security -fcf-p=
rotection =0A=0A-fdebug-prefix-map=3D/build/wget-LWnKWI/wget-1.21.4=3D/usr/=
src/wget-1.21.4-1ubuntu4.1=0A=0A -DNO_SSLv2 -D_FILE_OFFSET_BITS=3D64 -g =
-Wall =0ALink: =0A gcc -DHAVE_LIBSSL -DNDEBUG -g -O2 -fno-omit-frame-poi=
nter =0A -mno-omit-leaf-frame-pointer =0A -ffile-prefix-map=3D/build/=
wget-LWnKWI/wget-1.21.4=3D. -flto=3Dauto =0A -ffat-lto-objects -fstack-p=
rotector-strong -fstack-clash-protection =0A -Wformat -Werror=3Dformat-s=
ecurity -fcf-protection =0A=0A-fdebug-prefix-map=3D/build/wget-LWnKWI/wget-=
1.21.4=3D/usr/src/wget-1.21.4-1ubuntu4.1=0A=0A -DNO_SSLv2 -D_FILE_OFFSET=
_BITS=3D64 -g -Wall -Wl,-Bsymbolic-functions =0A -flto=3Dauto -ffat-lto-=
objects -Wl,-z,relro -Wl,-z,now -lpcre2-8 =0A -luuid -lidn2 -lssl -lcryp=
to -lz -lpsl ../lib/libgnu.a =0A=0ACopyright (C) 2015 Free Software Foundat=
ion, Inc.=0ALicense GPLv3+: GNU GPL version 3 or later=0A<http://www.gnu.or=
g/licenses/gpl.html>.=0AThis is free software: you are free to change and r=
edistribute it.=0AThere is NO WARRANTY, to the extent permitted by law.=0A=
=0AOriginally written by Hrvoje Niksic <[email protected]>.=0APlease send =
bug reports and questions to <[email protected]>.=0A=0A=0A=0A=0A=0A=0A=0A=0A=
_______________________________________________________=0A=0AReply to t=
his item at:=0A=0A <https://savannah.gnu.org/bugs/?67639>=0A=0A___________=
____________________________________=0AMessage sent via Savannah=0Ahttps://=
savannah.gnu.org/=0A
--8323329-632248271-1761603586=:2501111
Content-Type: APPLICATION/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaP/wAgAKCRCqLAuaBUf3
TjOgAQDAR679tFp8TXEHsbWWu9xhcCpMD4sWyXnsa5OYbou3rQD/Z20MVTifJRAe
xHFp9JZ2yjO1jI3itg43+eljB0gl3Qc=
=+YDA
-----END PGP SIGNATURE-----
--8323329-632248271-1761603586=:2501111--