Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

t/api/err_headers_out.t failures with HTTP::Message 6.06

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


ntyni at debian

Jun 20, 2013, 11:49 PM

Post #1 of 1 (65 views)
Permalink
t/api/err_headers_out.t failures with HTTP::Message 6.06

We recently started seeing mod_perl test failures like this:

Test Summary Report
-------------------
t/api/err_headers_out.t (Wstat: 0 Tests: 6 Failed: 3)
Failed tests: 2-3, 5

Looking at the test code in that file:

# HTTP::Headers 6.00 makes the next 2 tests fail. When the response comes
# in the header name is stored as "x-err_headers_out". But when it is to
# be read below it is referred as "x-err-headers-out" and hence not found.
local $HTTP::Headers::TRANSLATE_UNDERSCORE=
$HTTP::Headers::TRANSLATE_UNDERSCORE;
undef $HTTP::Headers::TRANSLATE_UNDERSCORE
if defined HTTP::Headers->VERSION and HTTP::Headers->VERSION==6.00;

HTTP::Message 6.03 has HTTP::Headers VERSION 6.00
but the recent 6.06 has 6.05.

Changing that test to read 'HTTP::Headers->VERSION>=6.00' fixes
the problem (although the equality comparison with a float makes me
slightly nervous, but it seems to have worked earlier.) Patch attached
for convenience.

I couldn't find a CPAN RT ticket about this in the HTTP-Message queue.
Was the problem discussed with HTTP-Message maintainers? Is there
reason to expect that the problematic change will get reverted?

This is <http://bugs.debian.org/710873>.
--
Niko Tyni ntyni [at] debian
Attachments: 0001-Make-t-api-err_headers_out.t-work-with-HTTP-Headers-.patch (1.52 KB)

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.