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

André Warnier (tomcat/perl) <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
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 ?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.