** Description changed:

  APT only allows Content-Range: */<filesize> to be specified on a 416
  response. Sourceforge sometimes replies with that in a 302 redirect.
  
  We should probably just accept and silently ignore that content-range
  field for other values.
  
- 
- [Impact] 
+ [Impact]
  Issue breaks and other services that respond with a Content-Range header in a 
302 redirect, or any non 416 one.
  
  [Test Case]
- TODO.
+ Run
  
- [Regression Potential] 
+ /usr/lib/apt/apt-helper download-file -o debug::acquire::http=1
+ http://www.jak-software.de/lp1657567 ubuntu.iso
+ 
+ Before:
+ 
+ E: Failed to fetch http://www.jak-software.de/lp1657567  The HTTP server
+ sent an invalid Content-Range header Bad header data
+ 
+ After:
+ 
+ Redirect is followed successfully and a zesty live image is being
+ downloaded.
+ 
+ [Regression Potential]
  None

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1657567

Title:
  "Content-Range: */<file size>" on non-416 responses considered invalid

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1657567/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to