You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "André Warnier (tomcat/perl)" <aw...@ice-sa.com> on 2020/06/03 19:11:36 UTC

problem with SLES 12, Apache 2,4, mod_perl 2.0.8

Hi.
A few days ago, I posted an issue that we experienced with apreq2 on this same platform, 
which we could in the end resolve but via a somewhat unconventional and complicated route.

Now we find another issue with mod_perl, and we do not know how to tackle it.

The problem seems to be that with the mod_perl 2.0.8 on this platform, the Apache2::Const 
"AUTHZ" constants seem to all return the value 0.

In particular, we have a startup script which contains these lines :

		$server->log_error("mp2-startup: AUTHZ_GRANTED is : " . (Apache2::Const::AUTHZ_GRANTED + 
0));
		$server->log_error("mp2-startup: AUTHZ_DENIED is : " . (Apache2::Const::AUTHZ_DENIED + 0));
		$server->log_error("mp2-startup: AUTHZ_DENIED_NO_USER is : " . 
(Apache2::Const::AUTHZ_DENIED_NO_USER + 0));

and on this platform it prints a value 0 for each of them, e.g.

[Wed Jun 03 16:21:13.381748 2020] [:error] [pid 113974] mp2-startup: AUTHZ_GRANTED is : 0
[Wed Jun 03 16:21:13.381752 2020] [:error] [pid 113974] mp2-startup: AUTHZ_DENIED is : 0
[Wed Jun 03 16:21:13.381754 2020] [:error] [pid 113974] mp2-startup: AUTHZ_DENIED_NO_USER 
is : 0


while on a bunch of other Apache 2.4/mod_perl platforms this prints e.g.

[Sun May 31 06:25:04.301983 2020] [:error] [pid 24489] mp2-startup: AUTHZ_GRANTED is : 1
[Sun May 31 06:25:04.301986 2020] [:error] [pid 24489] mp2-startup: AUTHZ_DENIED is : 0
[Sun May 31 06:25:04.301989 2020] [:error] [pid 24489] mp2-startup: AUTHZ_DENIED_NO_USER 
is : 4


We are not quite sure where this mod_perl 2.0.8 comes from, and it might be corrupted..
Or maybe mod_perl 2.0.8 did not really define these constants in Apache2::Const ?

Does this ring a bell, anyone ?