changeset 1575:42618fc5ab46 dockerise

Fix for Apache 2.4+
author Chris Cannam
date Fri, 04 Aug 2017 10:51:31 +0100
parents 7b23adecd963
children d1de6986e429
files extra/soundsoftware/SoundSoftware.pm
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/extra/soundsoftware/SoundSoftware.pm	Thu Aug 03 20:51:41 2017 +0100
+++ b/extra/soundsoftware/SoundSoftware.pm	Fri Aug 04 10:51:31 2017 +0100
@@ -32,7 +32,8 @@
 Debian/ubuntu:
 
   apt-get install libapache-dbi-perl libapache2-mod-perl2 \
-    libdbd-mysql-perl libauthen-simple-ldap-perl libio-socket-ssl-perl
+    libdbd-mysql-perl libdbd-pg-perl libio-socket-ssl-perl \
+    libauthen-simple-ldap-perl
 
 Note that LDAP support is hardcoded "on" in this script (it is
 optional in the original Redmine.pm).
@@ -176,6 +177,11 @@
 	return FORBIDDEN;
     }
 
+    if (!defined $r->user or $r->user eq '') {
+        $r->user('*anon*'); # Apache 2.4+ requires auth module to set
+                            # user even if no auth was needed
+    }
+
     my $method = $r->method;
 
     print STDERR "SoundSoftware.pm:$$: Method: $method, uri " . $r->uri . ", location " . $r->location . "\n";