Source: redmine
Version: 3.0~20140825-8
Severity: normal
Tags: patch

Hallo,

within debian stable the following doenst work:
- checking out the repository of a public project
- while u can browse in redmine it using a webbrowser 

this was a bug which was fixed in
http://www.redmine.org/issues/16948

the fix for debian is bit different since the versions are different

patch:

diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm
--- a/extra/svn/Redmine.pm
+++ b/extra/svn/Redmine.pm
@@ -333,10 +333,10 @@ sub access_handler {
 
   my $project_id = get_project_identifier($r);
 
-  $r->set_handlers(PerlAuthenHandler => [\&OK])
-      if is_public_project($project_id, $r) && 
anonymous_role_allows_browse_repository($r);
+  if (is_public_project($project_id, $r) && 
anonymous_role_allows_browse_repository($r)) {
+    $r->user("");
+    $r->set_handlers(PerlAuthenHandler => [\&OK]);
+  }
 
   return OK
 }

mvg,
Wim

-- System Information:
Debian Release: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=nl_BE.utf8, LC_CTYPE=nl_BE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to