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

ra_serf PROPFIND refused by Nginx

From: Bartosz Fabianowski <freebsd_at_chillt.de>
Date: Sun, 23 Jun 2013 21:21:00 +0200

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
Received on 2013-06-23 22:43:20 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.