Project

General

Profile

Actions

Patch #4905

closed

Redmine.pm: add support for Git's smart HTTP protocol

Added by Antonio García-Domínguez over 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM extra
Target version:
Start date:
2010-02-23
Due date:
% Done:

0%

Estimated time:

Description

After much hair pulling, I found out why the default access handler in Redmine wasn't working for Git's new smart HTTP protocol .

Since it normally works with DAV, it tells apart read-only queries by their HTTP method. However, that doesn't work for Git's smart HTTP protocol, as it will use POST even for a simple clone. Instead, read-only queries must be detected using their full, unparsed URL: anything that doesn't belong to the git-receive-pack service is read-only.

This patch adds a new Apache directive to the access handler called RedmineGitSmartHttp, which enables this new mode of operation. Usage instructions are included in the patch.

I'm not sure if this is the best approach, though. Does anyone know of a better way to integrate the Git smart HTTP protocol with Redmine? I've seen plugins which integrate the SSH part in a Github-like fashion, but I can't use SSH over the firewall at $DAYJOB.


Files

0001-Redmine.pm-add-Git-smart-HTTP-support.patch (4.02 KB) 0001-Redmine.pm-add-Git-smart-HTTP-support.patch Antonio García-Domínguez, 2010-02-23 13:36
0001-Redmine.pm-add-Git-smart-HTTP-support-v2.patch (4.1 KB) 0001-Redmine.pm-add-Git-smart-HTTP-support-v2.patch Antonio García-Domínguez, 2010-02-24 17:59
0001-Redmine.pm-add-Git-smart-HTTP-support.patch (5.13 KB) 0001-Redmine.pm-add-Git-smart-HTTP-support.patch Antonio García-Domínguez, 2010-02-25 10:07
0001-Redmine.pm-add-Git-smart-HTTP-support-v4.patch (5.13 KB) 0001-Redmine.pm-add-Git-smart-HTTP-support-v4.patch Fixed wrong hunk headers Antonio García-Domínguez, 2010-03-04 11:11
0001-Redmine.pm-add-Git-smart-HTTP-support-r3840.patch (4.92 KB) 0001-Redmine.pm-add-Git-smart-HTTP-support-r3840.patch Felix Schäfer, 2010-07-13 18:31
0001-Redmine.pm-add-Git-smart-HTTP-support-redmine0.9.6.patch (5.68 KB) 0001-Redmine.pm-add-Git-smart-HTTP-support-redmine0.9.6.patch Updated patch for Redmine 0.9.6 (r3839) Antonio García-Domínguez, 2010-07-19 21:55
0001-Redmine.pm-add-Git-smart-HTTP-support-simplified.patch (5.66 KB) 0001-Redmine.pm-add-Git-smart-HTTP-support-simplified.patch Patch with simplified path checking which does not require explicit configuration of the URL prefix for the Git repositories Antonio García-Domínguez, 2010-07-19 22:47
0001-Redmine.pm-add-Git-smart-HTTP-support-use-location.patch (5.82 KB) 0001-Redmine.pm-add-Git-smart-HTTP-support-use-location.patch Patch which uses the path in the <Location> block as the prefix for all regexps Antonio García-Domínguez, 2010-07-19 23:55
0001-Redmine.pm-add-Git-smart-HTTP-support.patch (6.42 KB) 0001-Redmine.pm-add-Git-smart-HTTP-support.patch Revised patch with a better regexp which allows for trailing slashes in Location block and is stricter on the service URLs Antonio García-Domínguez, 2010-07-20 10:03
LeeF-Redmine.pm.patch (5.96 KB) LeeF-Redmine.pm.patch Allow repositories to end in ".git" Lee Fay, 2011-01-04 05:52
0001-merged-LeeF-s-patch-with-Michael-Fox-s-security-fix.patch (6.57 KB) 0001-merged-LeeF-s-patch-with-Michael-Fox-s-security-fix.patch Patch with LeeF's fix for allowing repositories to append .git after the project ID and Michael Fox's security fix Antonio García-Domínguez, 2011-03-31 12:39
0001-merged-LeeF-s-patch-with-Michael-Fox-s-security-fix-redminetrunk.patch (6.02 KB) 0001-merged-LeeF-s-patch-with-Michael-Fox-s-security-fix-redminetrunk.patch Ве Fio, 2011-05-13 00:16
0001-Redmine.pm-update-patch-4905-to-Redmine-1.3.0.patch (5.35 KB) 0001-Redmine.pm-update-patch-4905-to-Redmine-1.3.0.patch Updated patch for Redmine 1.3.0 Antonio García-Domínguez, 2011-12-22 16:14
log (39.3 KB) log Apache log file - debug mode Miloš Kozák, 2011-12-23 19:02
0001-Redmine.pm-update-patch-4905-to-Redmine-1.3.0-fixed.patch (5.35 KB) 0001-Redmine.pm-update-patch-4905-to-Redmine-1.3.0-fixed.patch Fixed patch for Redmine 1.3.0 Antonio García-Domínguez, 2011-12-28 12:57
Redmine.pm-update-patch-4905-to-Redmine-1.4.0.patch (5.25 KB) Redmine.pm-update-patch-4905-to-Redmine-1.4.0.patch Antonio García-Domínguez, 2012-04-17 11:40
Redmine.pm-update-patch-4905-to-Redmine-1.4.1-support-multiscm.patch (5.56 KB) Redmine.pm-update-patch-4905-to-Redmine-1.4.1-support-multiscm.patch Takashi Okamoto, 2012-04-27 18:27
Redmine.pm-update-patch-4905-to-Redmine-1.4.1-support-multiscm-2.patch (5.59 KB) Redmine.pm-update-patch-4905-to-Redmine-1.4.1-support-multiscm-2.patch Takashi Okamoto, 2012-04-28 00:30
trunk-r9557-strip-dot-git.diff (7.29 KB) trunk-r9557-strip-dot-git.diff Toshi MARUYAMA, 2012-04-28 03:40
repository_git_test.rb (7.22 KB) repository_git_test.rb Lluís Vilanova, 2012-06-12 22:38
2.0-stable.diff (8.93 KB) 2.0-stable.diff Toshi MARUYAMA, 2012-07-17 00:45
Redmine.pm-1.4.4-based-on-1.4.1-multiscm-2.patch (5.6 KB) Redmine.pm-1.4.4-based-on-1.4.1-multiscm-2.patch Vincent Metalhead, 2012-09-14 09:44
Redmine.pm-1.4.4-based-on-1.4.1-multiscm-2--improved.patch (6.1 KB) Redmine.pm-1.4.4-based-on-1.4.1-multiscm-2--improved.patch Support for Redmine 1.4.4 with similarly named bare repositories Vincent Metalhead, 2012-09-14 13:04
Redmine.pm-1.4.4-based-on-1.4.1-multiscm-2--improved2.patch (6.11 KB) Redmine.pm-1.4.4-based-on-1.4.1-multiscm-2--improved2.patch Use the project indetifier instead of the project name Vincent Metalhead, 2012-09-14 14:23
Actions

Also available in: Atom PDF