[questing] [autopkgtest] Apache2 2.4.63-1ubuntu2 fails d/perl-framework test suites, thus fails autopkgtests
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
apache2 (Ubuntu) | Status tracked in Questing | |||||
Questing |
Fix Released
|
High
|
Thomas Ward |
Bug Description
Discovered through update_excuses and confirmed locally in an LXD autopkgtest container (from https:/
It fails on debian/
I followed every single step and reproduced in a pure LXD container with the apache2 binaries in proposed.
With this in mind, the following is the specific items in the test at fault:
EXPECTED: response from looking at http://
ACTUAL: response from looking at http://
There is a changelog that introduces this test via a pull request:
*) mod_xml2enc: Update check to accept any text/ media type
or any XML media type per RFC 7303, avoiding
corruption of Microsoft OOXML formats. PR 64339.
[Joseph Heenan joseph.heenan fintechlabs.io, Joe Orton]
... in 2.4.59 in April 2024. At the time the test was written, Apache was using libxml2 and the 2.12 branch.
After examining the Apache code (modules/
Using HTMLParser from python3-lxml (which is libxml2 wrappings for Python), I went through the decoding process of perl-framework/
I am unsure where the Ubuntu packaging gets its debian/
---
ProblemType: Bug
DistroRelease: Ubuntu 25.10
Package: apache2 2.4.63-1ubuntu2
ProcVersionSign
Uname: Linux 6.11.0-26-generic x86_64
Apache2ConfdDir
Apache2Modules:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.73.1.36. Set the 'ServerName' directive globally to suppress this message
httpd (pid 2813) already running
ApportVersion: 2.32.0-0ubuntu5
Architecture: amd64
CasperMD5CheckR
CloudArchitecture: x86_64
CloudBuildName: server
CloudID: lxd
CloudName: lxd
CloudPlatform: lxd
CloudSerial: 20250528
CloudSubPlatform: LXD socket API v. 1.0 (/dev/lxd/sock)
Date: Wed Jun 4 01:37:25 2025
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
TERM=xterm-
SourcePackage: apache2
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
summary: |
- [questing] [autopkgtest] Apache2 2.4.63-1ubuntu2 fails its own test - suite + [questing] [autopkgtest] Apache2 2.4.63-1ubuntu2 fails d/perl-framework + test suites |
summary: |
[questing] [autopkgtest] Apache2 2.4.63-1ubuntu2 fails d/perl-framework - test suites + test suites, thus fails autopkgtests |
Changed in apache2 (Ubuntu Questing): | |
assignee: | nobody → Thomas Ward (teward) |
Changed in apache2 (Ubuntu Questing): | |
status: | New → In Progress |
importance: | Undecided → High |
I believe it comes from https:/ /httpd. apache. org/test/
svn checkout http:// svn.apache. org/repos/ asf/httpd/ test/framework/ trunk/ httpd-framework
And there is this interesting commit:
"""
r1925450 | jorton | 2025-05-07 04:11:17 -0300 (Wed, 07 May 2025) | 5 lines
Be more flexible about HTML body content since libxml2 behaviour
has changed across versions.
See: https:/ /lists. apache. org/thread/ 1gzcqm2mo4osrc8 vvc0j6jmx8q70pl vf
"""
Which corresponds to: ======= ======= ======= ======= ======= ======= ======= ======= ==== /doc.notxml' , "application/ notreallyxml" , "f\xf3\xf3\n" ],
$ svn diff -c 1925450
Index: t/apache/pr64339.t
=======
--- t/apache/pr64339.t (revision 1925449)
+++ t/apache/pr64339.t (revision 1925450)
@@ -18,7 +18,7 @@
['
# Sent with charset=ISO-8859-1 - should be transformed to utf-8 charset= utf-8", "<html> <body>< p>fóó\n< /p></body> </html> " ], charset= utf-8", "<html> <body>. *fóó\n. *</body> </html> " ],
- ['/doc.isohtml', "text/html;
+ ['/doc.isohtml', "text/html;
);
# mod_xml2enc on trunk behaves quite differently to the 2.4.x version
@@ -42,5 +42,5 @@
ok t_cmp($r->code, 200, "fetching ".$t->[0]); r->header( 'Content- Type'), $t->[1], "content-type header test for ".$t->[0]);
ok t_cmp($
- ok t_cmp($r->content, $t->[2], "content test for ".$t->[0]);
+ ok t_cmp($r->content, qr/$t->[2]/, "content test for ".$t->[0]);
}