Date: Wed, 11 Jan 2012 14:26:26 GMT From: Dmitry Afanasiev <KOT@MATPOCKuH.Ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/164018: www/oops must support REPORT method Message-ID: <201201111426.q0BEQQsi098462@red.freebsd.org> Resent-Message-ID: <201201111430.q0BEUBdx061386@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 164018 >Category: ports >Synopsis: www/oops must support REPORT method >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 11 14:30:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Dmitry Afanasiev >Release: FreeBSD 9.0-STABLE sparc64 >Organization: >Environment: FreeBSD sunrise.elcom.spb.ru 9.0-STABLE FreeBSD 9.0-STABLE #24: Sun Jan 8 02:46:09 MSK 2012 root@sunrise:/usr/obj/usr/src/sys/sunrise sparc64 >Description: oops doesn't support REPORT method, for example used by svn: Mon Dec 12 14:42:18 2011 [0x49dd3800]parse_http_request(): Unrecognized method `REPORT'. >How-To-Repeat: Using oops as proxy server try: svn checkout http://anonsvn.icefaces.org/repo/icefaces3/trunk/icefaces/ >Fix: Apply attached patch Patch attached with submission follows: diff -ruN oops.orig/files/patch-src_methodreport oops/files/patch-src_methodreport --- oops.orig/files/patch-src_methodreport 1970-01-01 03:00:00.000000000 +0300 +++ oops/files/patch-src_methodreport 2012-01-11 18:09:44.517662295 +0400 @@ -0,0 +1,34 @@ +diff -ruN src.orig/http_utils.c src/http_utils.c +--- src.orig/http_utils.c 2012-01-11 18:04:20.773665172 +0400 ++++ src/http_utils.c 2012-01-11 18:07:47.378664712 +0400 +@@ -120,6 +120,7 @@ + else if ( rq->meth == METH_MOVE ) meth="MOVE"; + else if ( rq->meth == METH_LOCK ) meth="LOCK"; + else if ( rq->meth == METH_UNLOCK ) meth="UNLOCK"; ++ else if ( rq->meth == METH_REPORT ) meth="REPORT"; + else + return; + IF_STRDUP(rq->tag, "TCP_MISS"); +diff -ruN src.orig/oops.h src/oops.h +--- src.orig/oops.h 2012-01-11 18:04:20.752662579 +0400 ++++ src/oops.h 2012-01-11 18:05:59.183668229 +0400 +@@ -224,6 +224,7 @@ + #define METH_OPTIONS 15 + #define METH_PURGE_SITE 16 + #define METH_PURGE_SITE_R 17 ++#define METH_REPORT 18 + + #define AND_PUT 1 + #define AND_USE 2 +diff -ruN src.orig/run_client.c src/run_client.c +--- src.orig/run_client.c 2012-01-11 18:04:20.816667134 +0400 ++++ src/run_client.c 2012-01-11 18:08:03.998664367 +0400 +@@ -1201,6 +1201,8 @@ + rq->meth = METH_PURGE_SITE_R; + else if (!strcasecmp(src, "OPTIONS")) + rq->meth = METH_OPTIONS; ++ else if (!strcasecmp(src, "REPORT")) ++ rq->meth = METH_REPORT; + else { + my_xlog(OOPS_LOG_SEVERE, "parse_http_request(): Unrecognized method `%s'.\n", src); + *p = ' '; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201111426.q0BEQQsi098462>