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

Re: svn server returns invalid XML during checkout

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 20 Jun 2011 00:21:03 +0300

Branko Čibej wrote on Sun, Jun 19, 2011 at 22:07:40 +0200:
> On 19.06.2011 18:13, Lieven Govaerts wrote:
> > Hi,
> >
> > when running svn with ra_serf on some test repositories I found a
> > consistent failure checking out a part of the gnome svn repository.
> >
> > This command:
> > $ svn co http://svn.gnome.org/svn/gimp/trunk/tools/pdbgen/pdb /tmp/tr1
> >
> > aborts after a while with error:
> > subversion/svn/checkout-cmd.c:168: (apr_err=175009)
> > subversion/libsvn_client/checkout.c:230: (apr_err=175009)
> > subversion/libsvn_client/update.c:555: (apr_err=175009)
> > subversion/libsvn_client/update.c:413: (apr_err=175009)
> > subversion/libsvn_ra_serf/update.c:2368: (apr_err=175009)
> > subversion/libsvn_ra_serf/update.c:2368: (apr_err=175009)
> > subversion/libsvn_ra_serf/util.c:1499: (apr_err=175009)
> > subversion/libsvn_ra_serf/util.c:1499: (apr_err=175009)
> > subversion/libsvn_ra_serf/util.c:1256: (apr_err=175009)
> > svn: E175009: XML parsing failed: (207 Multi-Status)
> >
> > The XML parsing fails on the response [1] of a PROPFIND request, on
> > tag "<C:text/x-perl/>". Strangely enough this is what's returned from
> > the server, it's not what serf makes of it.
> >
> > When running svn with ra_neon, these response are all returned as one
> > update-report, with different syntax, which the xml parser handles
> > without problem:
> > <S:set-prop name=\"text/x-perl\">
> >
> > Digging a bit deeper, it turns out that file text_layer.pdb has a
> > property with name "text/x-perl", where that should be the value of
> > property svn:mime-type. This probably shouldn't work in ra_neon
> > either, but both should give a nice error message.
>
> In fact, Subversion does not really impose such limits on property
> names, certainly not in the sense that they should be valid in XML tag
> names. So there's something else wrong with both RA layers if using such
> a property name causes an error.
>

What is svn_prop_name_is_valid() for?

> -- Brane
>
Received on 2011-06-19 23:21:49 CEST

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

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