diff options
author | lev <lev@FreeBSD.org> | 2011-10-30 18:45:29 +0800 |
---|---|---|
committer | lev <lev@FreeBSD.org> | 2011-10-30 18:45:29 +0800 |
commit | 4b5c7a02725bdc84a9813a86e67ca7062cc3d94d (patch) | |
tree | f33e932258bf0246facaea83bc4eaa6f773497e5 /devel | |
parent | 88823dc352d5153e046844ecd0a04fb9fa3d55ce (diff) | |
download | freebsd-ports-gnome-4b5c7a02725bdc84a9813a86e67ca7062cc3d94d.tar.gz freebsd-ports-gnome-4b5c7a02725bdc84a9813a86e67ca7062cc3d94d.tar.zst freebsd-ports-gnome-4b5c7a02725bdc84a9813a86e67ca7062cc3d94d.zip |
Add patch from upstream to fix nasty bug, which blocks all POST requests to
apache server, not proccessed by mod_dav_svn. It should fix "500 Internal
server error" caused by installing 1.7.x.
Submitted by: theultramage (at) gmail (dot) com
Diffstat (limited to 'devel')
-rw-r--r-- | devel/subversion/Makefile.common | 2 | ||||
-rw-r--r-- | devel/subversion/files/patch-r1187695-subversion--mod_dav_svn--mod_dav_svn.c | 27 |
2 files changed, 28 insertions, 1 deletions
diff --git a/devel/subversion/Makefile.common b/devel/subversion/Makefile.common index 8909544373cc..600ac89fa709 100644 --- a/devel/subversion/Makefile.common +++ b/devel/subversion/Makefile.common @@ -6,7 +6,7 @@ PORTNAME= subversion PORTVERSION= 1.7.1 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES+= devel MASTER_SITES= ${MASTER_SITE_APACHE}:main \ http://svnbook.red-bean.com/en/1.6/:book diff --git a/devel/subversion/files/patch-r1187695-subversion--mod_dav_svn--mod_dav_svn.c b/devel/subversion/files/patch-r1187695-subversion--mod_dav_svn--mod_dav_svn.c new file mode 100644 index 000000000000..2fade5cd5fd8 --- /dev/null +++ b/devel/subversion/files/patch-r1187695-subversion--mod_dav_svn--mod_dav_svn.c @@ -0,0 +1,27 @@ +--- subversion/mod_dav_svn/mod_dav_svn.c 2011/08/19 17:13:38 1159686 ++++ subversion/mod_dav_svn/mod_dav_svn.c 2011/10/22 11:32:38 1187695 +@@ -902,13 +902,17 @@ + /* Response handler for POST requests (protocol-v2 commits). */ + static int dav_svn__handler(request_rec *r) + { +- /* HTTP-defined Methods we handle */ +- r->allowed = 0 +- | (AP_METHOD_BIT << M_POST); +- +- if (r->method_number == M_POST) { +- return dav_svn__method_post(r); +- } ++ dir_conf_t *conf = ap_get_module_config(r->per_dir_config, &dav_svn_module); ++ ++ if (conf->fs_path || conf->fs_parent_path) ++ { ++ /* HTTP-defined Methods we handle */ ++ r->allowed = 0 ++ | (AP_METHOD_BIT << M_POST); ++ ++ if (r->method_number == M_POST) ++ return dav_svn__method_post(r); ++ } + + return DECLINED; + } |