[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: request for proxy code review

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-03-22 04:03:40 CET

Philip Martin <philip@codematters.co.uk> writes:

> > /usr/local/src/svn/trunk/subversion/libsvn_ra_dav/util.c:314
> > apr_error: #20014, src_err 0 : <Error string not specified yet>
> > REPORT request failed on /repos/svn/trunk
> >
> > /usr/local/src/svn/trunk/subversion/libsvn_ra_dav/util.c:288
> > apr_error: #20014, src_err 0 : <Error string not specified yet>
> > The REPORT status was 400, but expected 200.
>
> I get exactly this error with a proxy that doesn't support the REPORT
> method. To get a bit more info try enabling neon debugging: change
> the #if 0 at line 312 in the file subversion/libsvn_ra_dav/session.c
> to #if 1. The debugging output will include the HTTP request and
> response.

Few more details. I am using squid 2.4.STABLE4, I can successfully
'svn co' stuff from svn.collab.net going through squid, however other
commands like 'svn up' and 'svn st -u' fail. Squid reports

2002/03/22 02:11:43| parseHttpRequest: Unsupported method 'REPORT'
2002/03/22 02:11:43| clientReadRequest: FD 12 Invalid Request

It looks like the Subversion proxy code works :) but that proxies will
still be a problem :(

This is the neon debugging output for 'svn st -u'

HTTP session to http://svn.collab.net:80 begins.
HTTP session to http://svn.collab.net:80 begins.
Creating request...
Running request create hooks.
Request created.
Doing DNS lookup on localhost...
Running pre_send hooks
Sending request headers:
REPORT http://svn.collab.net/repos/svn/trunk/ac-helpers HTTP/1.1
User-Agent: SVN/0.10.1 (dev build) neon/0.19.3
Connection: TE
TE: trailers
Content-Length: 83
Content-Type: text/xml
Host: svn.collab.net

Sending headers (#0)
Request sent
Sending body...
Body block (83 bytes):
[<S:update-report xmlns:S="svn:">
<S:entry rev="1581"></S:entry>
</S:update-report>
]
Body sent.
[Status Line] < HTTP/1.0 400 Bad Request
[hdr] Server: Squid/2.4.STABLE4
Header Name: [server], Value: [Squid/2.4.STABLE4]
[hdr] Mime-Version: 1.0
Header Name: [mime-version], Value: [1.0]
[hdr] Date: Fri, 22 Mar 2002 02:56:32 GMT
Header Name: [date], Value: [Fri, 22 Mar 2002 02:56:32 GMT]
[hdr] Content-Type: text/html
Header Name: [content-type], Value: [text/html]
[hdr] Content-Length: 1030
Header Name: [content-length], Value: [1030]
[hdr] Expires: Fri, 22 Mar 2002 02:56:32 GMT
Header Name: [expires], Value: [Fri, 22 Mar 2002 02:56:32 GMT]
[hdr] X-Squid-Error: ERR_INVALID_REQ 0
Header Name: [x-squid-error], Value: [ERR_INVALID_REQ 0]
[hdr] X-Cache: MISS from debian2
Header Name: [x-cache], Value: [MISS from debian2]
[hdr] X-Cache-Lookup: NONE from debian2:3128
Header Name: [x-cache-lookup], Value: [NONE from debian2:3128]
[hdr] Proxy-Connection: close
Header Name: [proxy-connection], Value: [close]
[hdr]
End of headers.
Reading 1030 bytes of response body.
Got 1030 bytes.
Read block (1030 bytes):
[<HTML><HEAD>
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR>
<P>
While trying to process the request:
<PRE>
REPORT http://svn.collab.net/repos/svn/trunk/ac-helpers HTTP/1.1
User-Agent: SVN/0.10.1 (dev build) neon/0.19.3
Connection: TE
TE: trailers
Content-Length: 83
Content-Type: text/xml
Host: svn.collab.net

</PRE>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Invalid Request
</STRONG>
</UL>

<P>
Some aspect of the HTTP Request is invalid. Possible problems:
<UL>
<LI>Missing or unknown request method
<LI>Missing URL
<LI>Missing HTTP Identifier (HTTP/1.0)
<LI>Request is too large
<LI>Content-Length missing for POST or PUT requests
<LI>Illegal character in hostname; underscores are not allowed
</UL>
<P>Your cache administrator is <A HREF="mailto:webmaster">webmaster</A>.

<br clear="all">
<hr noshade size=1>
Generated Fri, 22 Mar 2002 02:56:32 GMT by debian2 (Squid/2.4.STABLE4)
</BODY></HTML>
]
Running post_send hooks
Connection status: no forced close, persistent connection, pre-HTTP/1.1
Running destroy hooks.
Request ends.

../svn/subversion/libsvn_ra_dav/util.c:314
apr_error: #20014, src_err 0 : <Error string not specified yet>
  REPORT request failed on /repos/svn/trunk/ac-helpers

../svn/subversion/libsvn_ra_dav/util.c:288
apr_error: #20014, src_err 0 : <Error string not specified yet>
  The REPORT status was 400, but expected 200.
ne_session_destroy called.
ne_session_destroy called.

-- 
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 22 04:04:15 2002

This is an archived mail posted to the Subversion Dev mailing list.