Svein Ove Aas
2018-11-05 15:39:52 UTC
URL:
<https://savannah.gnu.org/bugs/?54963>
Summary: wget -c treats a 416 response as a failure
Project: GNU Wget
Submitted by: baughn
Submitted on: Mon 05 Nov 2018 03:39:50 PM UTC
Category: Protocol Issue
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.19.5
Operating System: None
Reproducibility: Every Time
Fixed Release: None
Planned Release: None
Regression: Yes
Work Required: None
Patch Included: None
_______________________________________________________
Details:
This was tested on NixOS 19.03pre-git (Koi), based on a report from a user on
Windows.
With wget -c, the client issues a range request asking for any data that has
not yet been downloaded. For a file that has already been fully downloaded
this becomes an invalid request, asking for data that does not exist, and the
HTTP server should return a 416.
In wget 1.18, the 416 return is correctly treated as success.
For wget 1.19.5, this is treated as an error, and the download is retried. It
should be treated as success.
Example, for `wget -d -c -t 1 https://brage.info/robots.txt`:
https://brage.info/wget-bug.txt
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54963>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
<https://savannah.gnu.org/bugs/?54963>
Summary: wget -c treats a 416 response as a failure
Project: GNU Wget
Submitted by: baughn
Submitted on: Mon 05 Nov 2018 03:39:50 PM UTC
Category: Protocol Issue
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.19.5
Operating System: None
Reproducibility: Every Time
Fixed Release: None
Planned Release: None
Regression: Yes
Work Required: None
Patch Included: None
_______________________________________________________
Details:
This was tested on NixOS 19.03pre-git (Koi), based on a report from a user on
Windows.
With wget -c, the client issues a range request asking for any data that has
not yet been downloaded. For a file that has already been fully downloaded
this becomes an invalid request, asking for data that does not exist, and the
HTTP server should return a 416.
In wget 1.18, the 416 return is correctly treated as success.
For wget 1.19.5, this is treated as an error, and the download is retried. It
should be treated as success.
Example, for `wget -d -c -t 1 https://brage.info/robots.txt`:
https://brage.info/wget-bug.txt
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54963>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/