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

Re: [Issue 1807] ra_dav doesn't permit properties to have colons in their names.

From: Ben Reser <ben_at_reser.org>
Date: 2004-04-13 18:25:50 CEST

On Tue, Apr 13, 2004 at 05:02:56PM +0100, Branko ??ibej wrote:
> Escaping is fine and would work, but the namespace idea seems cleaner to
> me and would be understood by other DAV clients. It would also allow us
> to define a hierarchy of property namespaces; for example, "a:b:name"
> could be defined as "name" in namespace
>
> http://subversion.tigris.org/xmlns/customproperty/a/b
>
> instead of
>
> http://subversion.tigris.org/xmlns/customproperty/a:b:

Yup. Now that I think about this, this is probably a really good idea.
When the namespace gets parsed by the XML parser we'd end up with:

http://subversion.tigris.org/xmlns/customproperty/a:b:/name

So we'll have to remove a / character.

vs:
http://subversion.tigris.org/xmlns/customproperty/a/b/name

Where we can simply iterate over the name after removing the URL part
and replace / with :.

If no one else objects. I'll see if I can't get this implemented this
week.

It'd be really helpful to me if someone else with more test suite kungfu
than me would write a test for this. We can drop it in as XFAIL for the
time being.

-- 
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 Tue Apr 13 18:26: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.