[Bug 1953344] Re: Autopkgtest failure with HTTP proxy

Launchpad Bug Tracker 1953344 at bugs.launchpad.net
Tue Dec 7 06:04:50 UTC 2021


This bug was fixed in the package libwww-mechanize-shell-perl - 0.59-2

---------------
libwww-mechanize-shell-perl (0.59-2) unstable; urgency=medium

  [ Debian Janitor ]
  * Bump debhelper from old 12 to 13.
  * Update standards version to 4.5.1, no changes needed.

  [ Olivier Gayot ]
  * Unset HTTP proxy environment variables when running tests against
    local HTTP server. (LP: #1953344)

  [ gregor herrmann ]
  * Drop http_proxy handling from debian/rules.
  * Update years of packaging copyright.
  * Declare compliance with Debian Policy 4.6.0.

 -- gregor herrmann <gregoa at debian.org>  Mon, 06 Dec 2021 19:04:16 +0100

** Changed in: libwww-mechanize-shell-perl (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1953344

Title:
  Autopkgtest failure with HTTP proxy

Status in libwww-mechanize-shell-perl package in Ubuntu:
  Fix Released

Bug description:
  Hello,

  Autopktest is failing for libwww-machanize-shell-perl.
  Since it is a reverse dependency of libwww-perl, the latter is blocked on proposed migration (jammy).
  https://autopkgtest.ubuntu.com/results/autopkgtest-jammy/jammy/amd64/libw/libwww-mechanize-shell-perl/20211206_012815_4c3bd@/log.gz

  The tests that fail are meant to execute HTTP queries to the loopback
  interface, for instance:

  # get http://[::1]:49619/basic_auth/foo/bar
  [...]
  not ok 1 - Request without credentials gives 401

  #   Failed test 'Request without credentials gives 401'
  #   at t/13-command-au.t line 39.
  #          got: '503'
  #     expected: '401'
  # Page location : http://[::1]:49619/basic_auth/foo/bar
  # get http://[::1]:49619/basic_auth/foo/bar
  not ok 2 - Wrong password still results in a 401

  The issue seems to be caused by the HTTP proxy that is passed in the
  environment when running autopkgtest. Although we define a no_proxy
  variable that includes some of the addresses/hostnames of the loopback
  interface, it does not contain the IPv6 loopback address i.e., ::1
  being used here.

  no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain[...]

  Debian does not have the issue. They seem to run autopkgtest without a
  proxy.

  Some of the tests from the upstream include the following directive,
  which unsets the HTTP proxy variables when running the tests:

  delete @ENV{qw(HTTP_PROXY http_proxy CGI_HTTP_PROXY)};

  The tests that fail don't have this directive. I suggest to add the
  directive for all tests that query a local HTTP server.

  Thanks,
  Olivier

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libwww-mechanize-shell-perl/+bug/1953344/+subscriptions




More information about the Ubuntu-sponsors mailing list