Bug#1016761: libhttp-daemon-perl: FTBFS with newer HTTP::Tiny versions

Niko Tyni ntyni at debian.org
Sat Aug 6 19:24:08 BST 2022


Source: libhttp-daemon-perl
Version: 6.14-1.1
Severity: important
Tags: ftbfs
User: debian-perl at lists.debian.org
Usertags: perl-5.36-transition
X-Debbugs-Cc: Thorsten Alteholz <alteholz at debian.org>

It looks like the recent security fix in libhttp-daemon-perl_6.14-1.1
(or at least the associated test case) has issues with newer versions
of the HTTP::Tiny module. This includes the separately packaged one
in sid (libhttp-tiny-perl_0.082-1) and the one bundled with Perl 5.36
(currently in experimental).

Reproducible in current sid by passing something like
  --add-depends='libhttp-tiny-perl (>= 0.080)'
to sbuild, triggering the installation of the separate package.

>From my build log:

   Subroutine HTTP::Tiny::Handle::write_content_body redefined at t/content_length.t line 277.
   
   #   Failed test '... and has expected status'
   #   at t/content_length.t line 36.
   #          got: '200'
   #     expected: '400'
   
   #   Failed test '... and body does match'
   #   at t/content_length.t line 40.
   #                   ''
   #     doesn't match '(?^:value must be an unsigned integer)'
   
   #   Failed test '... and has expected status'
   #   at t/content_length.t line 36.
   #          got: '200'
   #     expected: '400'
   
   #   Failed test '... and body does match'
   #   at t/content_length.t line 40.
   #                   ''
   #     doesn't match '(?^:value must be an unsigned integer)'
   
   #   Failed test '... and has expected status'
   #   at t/content_length.t line 36.
   #          got: '200'
   #     expected: '400'
   
   #   Failed test '... and body does match'
   #   at t/content_length.t line 40.
   #                   ''
   #     doesn't match '(?^:value must be an unsigned integer)'
   # Looks like you failed 6 tests of 30.
   t/content_length.t ..... 
   ok 1 - Hello World Request ... it works as expected
   ok 2 - ... and has expected status
   ok 3 - ... and body does match
   ok 4 - Positive Content Length
   not ok 5 - ... and has expected status
   not ok 6 - ... and body does match
   ok 7 - Negative Content Length
   not ok 8 - ... and has expected status
   not ok 9 - ... and body does match
   ok 10 - Non Integer Content Length
   not ok 11 - ... and has expected status
   not ok 12 - ... and body does match
   ok 13 - Explicit Content Length ... with exact length
   ok 14 - ... and has expected status
   ok 15 - ... and body does match
   ok 16 - Implicit Content Length ... will always pass
   ok 17 - ... and has expected status
   ok 18 - ... and body does match
   ok 19 - Shorter Content Length ... gets truncated
   ok 20 - ... and has expected status
   ok 21 - ... and body does match
   ok 22 - Different Content Length ... must fail
   ok 23 - ... and has expected status
   ok 24 - ... and body does match
   ok 25 - Underscore Content Length ... must match
   ok 26 - ... and has expected status
   ok 27 - ... and body does match
   ok 28 - Longer Content Length ... gets timeout
   ok 29 - ... and has expected status
   ok 30 - ... and body does match
   1..30
   Dubious, test returned 6 (wstat 1536, 0x600)
   Failed 6/30 subtests 

-- 
Niko Tyni   ntyni at debian.org



More information about the pkg-perl-maintainers mailing list