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

Re: Issue with "prefix:prop=propval"

From: Ben Reser <ben_at_reser.org>
Date: 2004-07-28 00:58:53 CEST

On Sun, Jul 25, 2004 at 09:09:15PM +0000, Stein Roger Skafløtten wrote:
> Thought I should organize some props into a namespace (just as svn: is a
> namespace)
>
> Setting it works fine:
>
> >svn propset myprefix:myprop--revprop -r 0 propval
> property 'myprefix:myprop' set on repository revision '0'
>
> Getting it back doesn't:
>
> >svn propget myprefix:myprop --revprop -r 0
> svn: PROPFIND request failed on '/svn/myrepos/!svn/vcc/default'
> svn: PROPFIND of '/svn/myrepos/!svn/vcc/default': 400 Bad Request
> (http://myserver)
>
> If I replace the colon above with a dot, it works just fine.
>
> Maybe there's a good reason for this, but I sure cannot deduce it from the
> error message ;-)

The problem is that the colon conflicts with XML namespaces that DAV
uses. While the symptom you show above will be fixed in 1.1.0, I would
still recommend that you avoid putting colons in property names. The
solution we currently have is really just a workaround. If the XML
parsers on the client side get pickier, it's going to break again and in
a far worse way.

When we get to 2.0 we'll have to decide what we're going to do about
this for sure.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 28 00:59:07 2004

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.