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

Re: locking: serious RA interoperability problems.

From: Greg Stein <gstein_at_lyra.org>
Date: 2005-02-14 21:05:46 CET

On Mon, Feb 14, 2005 at 01:53:50PM -0600, Ben Collins-Sussman wrote:
> On Feb 14, 2005, at 1:37 PM, Daniel Patterson wrote:
> >
> > If DAV locks always store lock-comment = "<D:author>blah blah
> >blah</D:author>"
> They don't. They store
> <D:author ...a possible random list of xml namespaces and tag
> attributes>
> opaque cdata
> </D:author>

note that it is technically D:owner, but the point is still valid.

> So it's not safe to blindly strip away <D:author>. Furthermore,
> mod_dav has an obligation to preserve the entire XML block... not just
> the cdata, but the attributes on <D:author>.

Right. Note also that it is an XML fragment. There may be child elements,
and those elements may have attributes which need preservation. And
ordering, and xml:lang values, and...

And to answer another of Daniel's questions: yes, they are always wrapped
in the D:owner element. The most minimal form would look like:

  <ns0:owner xmlns:ns0="DAV:">gstein</ns0:owner>

The ns### prefix is constructed by mod_dav's internal namespace mgmt code
when it serializes a DOM representation of the original owner element.


Greg Stein, http://www.lyra.org/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 14 21:14:59 2005

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.