Thanks for this latest release.

In case you are interested, I found two issues with the test system with proposed fixes.

The smaller issue is in the file:

mod_perl-2.0.14/ModPerl-Registry/t/special_blocks.t

which should have "need_cgi" on the call to "plan()" on line 20. If mod_cgi is not enabled in Apache, the test fails instead of being skipped.

Line 20 (original):

plan tests => @aliases * 4, need [qw(mod_alias.c HTML::HeadParser)];

Line 20 (with "need_cgi"):

plan tests => @aliases * 4, need [qw(mod_alias.c HTML::HeadParser)], need_cgi;

The other issue occurs in this file:

mod_perl-2.0.14/t/filter/TestFilter/in_bbs_inject_header.pm

Its test script is found here:

mod_perl-2.0.14/t/filter/in_bbs_inject_header.t

The "keep_alive" portion of the test script on line 42 succeeds for the first call to validate() and fails on the next three. The failures occur because, after the first request, the first line of the HTTP request, which starts with "POST", the letter 'P' arrives in one Apache bucket and the rest of the line arrives in the next bucket. The solution is concatenate header buckets until a newline is found and then compare the combined buffer to the regular expression "/^POST/".

I have attached a proposed fix as a patch file using "diff -u" (changes.txt). My system configuration is:

perl-5.44.0
pcre2-10.49
apr-1.7.6
apr-util-1.6.6
httpd-2.4.71
mod_perl-2.0.14

Best,

Geoff

On 11/22/2026 4:07 PM, Steve Hay via dev wrote:
We are pleased to announce the release of mod_perl 2.0.14.

mod_perl is an Apache HTTP Server module for embedding a Perl
interpreter in your web server, giving you super-fast dynamic content
by avoiding the overhead of starting an external interpreter.

This release is now, or soon will be, available for download from a
mirror site near you via:

     https://perl.apache.org/download/index.html

or from:

     https://metacpan.org/release/SHAY/mod_perl-2.0.14

or, if the release is not yet indexed, from:

     https://cpan.metacpan.org/authors/id/S/SH/SHAY/mod_perl-2.0.14.tar.gz

Checksums for this release are:

SHA256:
mod_perl-2.0.14.tar.gz: C7E4981C 07F1C952 8B993F74 8747B58C 960D5116 3D70BDEC
                         94B2619D 9109E136

SHA512:
mod_perl-2.0.14.tar.gz: AA9B383E A97E43B4 9DFE03C5 1E9FC2ED 99E2F294 957D8834
                         FBFCB38A 410112DD 46F334A0 C5694AA0 79C02908 0BC6B622
                         E4304756 034A2484 26A9136F 2C671504

Major changes in this release are as follows:

Check offset in mpxs_Apache2__RequestRec_write() [Satoru Yano
<[email protected]>]

Use SvPV_nolen() with apr_pstrdup() for ERRSV handling where necessary [Satoru
Yano <[email protected]>]

In modperl_perl_global_svpv_save()/modperl_perl_global_svpv_restore(), use a
full copy of the SV so that undef ($/ = undef, slurp mode) and reference
($/ = \4096, fixed-length records) values are preserved faithfully [Steve Hay,
Satoru Yano <[email protected]>]

Check len in mpxs_Apache2__Module_loaded() [Satoru Yano <[email protected]>]

Use apr_palloc() in mpxs_Apache2__RequestRec_set_basic_credentials() [Satoru
Yano <[email protected]>]

Abort when necessary in modperl_interp_new() and modperl_list_new [Steve Hay,
Satoru Yano <[email protected]>]

Use I32 rather than int for 'namelen' argument, fixing an incompatible
function pointer error/warning in a 32-bit build [Joe Orton]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--- in_bbs_inject_header.pm.orig        2026-11-22 15:02:29.000000000 -0500
+++ in_bbs_inject_header.pm     2026-11-24 10:49:56.373737535 -0500
@@ -158,6 +158,8 @@
     my $rv = $filter->next->get_brigade($ctx_bb, $mode, $block, $readbytes);
     return $rv unless $rv == APR::Const::SUCCESS;
 
+    my $line = '';
+    my $body;
     while (!$ctx_bb->is_empty) {
         my $b = $ctx_bb->first;
 
@@ -175,6 +177,24 @@
         $b->remove;
         debug "filter read:\n[$data]";
 
+        #
+        # A single header line may be split across multiple buckets.
+        # If parsing headers and there is no newline character in
+        # the data, append the data to $bb and keep reading.
+        #
+        if (!$body) {
+            if (index($data, "\n") >= 0) {
+                $data = $line . $data;
+                $line = '';
+                debug "filter found newline, completed line:\n[$data]";
+            } else {
+                $line .= $data;
+                debug "filter no newline, partial line:\n[$line]";
+                $bb->insert_tail($b);
+                next;
+            }
+        }
+
         # check that we really work only on the headers
         die "This filter should not ever receive the request body, " .
             "but HTTP headers" if ($data||'') eq $request_body;
@@ -186,6 +206,7 @@
             debug "queued header [$header]";
         }
         elsif ($data =~ /^[\r\n]+$/) {
+            $body = 1;
             # normally the body will start coming in the next call to
             # get_brigade, so if your filter only wants to work with
             # the headers, it can decline all other invocations if that
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to