** Description changed:

  [Impact]
  
  When using redirect url on /etc/apt/sources.list
  
  apt update command hangs
  
  this is affected with commit
  
https://anonscm.debian.org/git/apt/apt.git/commit/?id=dd547ebaffd2aceb42e2908f1d5f0ab386af6cb1
  
  In my test, moving below[1] code after[2]
  
  [1]
  ###
  if (ContentLength == 0)
-     return true;
+     return true;
  ###
  [2]
  if (Encoding == Closes)
-     Encoding = Stream;
+     Encoding = Stream;
  
  ###
  
  it worked fine.
  
  [Test Case]
  
  echo "deb http://packages.cloudfoundry.org/debian stable main" >
  /etc/apt/sources.list.d/cloudfoundry-cli.list
  
  apt update
  
  [Regression]
- TBD
+ Could cause some other zero-content redirects to break again (seems 
unlikely...).

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1751225

Title:
  apt update hangs when repository url is redirect url

Status in apt package in Ubuntu:
  Invalid
Status in apt source package in Xenial:
  In Progress
Status in apt source package in Artful:
  Invalid

Bug description:
  [Impact]

  When using redirect url on /etc/apt/sources.list

  apt update command hangs

  this is affected with commit
  
https://anonscm.debian.org/git/apt/apt.git/commit/?id=dd547ebaffd2aceb42e2908f1d5f0ab386af6cb1

  In my test, moving below[1] code after[2]

  [1]
  ###
  if (ContentLength == 0)
      return true;
  ###
  [2]
  if (Encoding == Closes)
      Encoding = Stream;

  ###

  it worked fine.

  [Test Case]

  echo "deb http://packages.cloudfoundry.org/debian stable main" >
  /etc/apt/sources.list.d/cloudfoundry-cli.list

  apt update

  [Regression]
  Could cause some other zero-content redirects to break again (seems 
unlikely...).

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to