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

RE: ra_serf PROPFIND refused by Nginx

From: Cooke, Mark <mark.cooke_at_siemens.com>
Date: Mon, 24 Jun 2013 09:34:11 +0100

> -----Original Message-----
> From: Bartosz Fabianowski [mailto:freebsd_at_chillt.de]
> Sent: 23 June 2013 20:21
> To: users_at_subversion.apache.org
> Subject: ra_serf PROPFIND refused by Nginx
>
> Hi list,
>
> I recently switched from svn 1.7 to 1.8 and with it, from
> neon to serf.
> I am now getting the following error for many repositories:
>
> % svn co http://svn.mkgmap.org.uk/mkgmap/trunk
> svn: E175004: The PROPFIND response did not include the
> requested properties
>
> Wireshark tells me that this is because the PROPFIND request
> was refused
> by the server with HTTP error 411, length required. Even though the
> server claims to support HTTP 1.1, chunked transfer encoding does not
> appear to work. The server identifies itself as Nginx, which
> leads me to
> believe that I am dealing with a reverse proxy.
>
> I worked around the issue by modifying
> subversion/libsvn_ra_serf/util.c
> to force HTTP 1.0:
>
> - /* HTTP/1.1? (or later) */
> - if (sl.version != SERF_HTTP_10)
> - handler->session->http10 = FALSE;
>
> Clearly, always forcing HTTP 1.0 is not the right solution. But maybe
> svn should automatically switch to HTTP 1.0 when it receives a 411
> response to a chunked request, telling it that the server (or a proxy)
> does not support chunked transfers?
>
> - Bartosz

FYI there was some discussion about this issue with nginx last week, this thread (amonsgt others) for example:

http://svn.haxx.se/users/archive-2013-06/0180.shtml

~ mark c
Received on 2013-06-24 10:35:13 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.