WebDAV IsReadOnly Property [Was: Re: WebDAV properties & namespace]

Adam Tauno Williams awilliam at whitemice.org
Wed May 2 04:26:22 PDT 2012


On Mon, 2012-04-30 at 14:12 -0400, Adam Tauno Williams wrote:
> On Mon, 2012-04-30 at 19:09 +0200, Michael Stahl wrote: 
> > On 30/04/12 16:02, Adam Tauno Williams wrote:
> > > I work on a WebDAV server.  Looking at requests from LibreOffice
> > > [3.4.5.5-4.5.1 on openSUSE 12.1] I see requests for properties in the
> > > "http://ucb.openoffice.org/dav/props/" namespace.  But the only places I
> > > can find mention of this namespace are:
> > > <http://code.google.com/p/sabredav/wiki/OpenOffice>
> > > <http://www.openoffice.org/ucb/docs/ucp-ref/webdav-ucp.html>
> > > Is there any documentation for the 'format' of these properties?  What
> > > the client expects?
> > > And the property I see requested "IsReadOnly" is not listed on the
> > > openoffice.org page. 
> > > I'd like to support these properties, especially IsReadOnly [since that
> > > one is frequently requested].  But there is no documentation on what a
> > > proper response looks like.
> > looking into this a bit, it was added in commit
> > d8aa390b8620613b977dd5421f99d56c0e557f6b.
> > the "IsReadOnly" property is added here in Content::getResourceType:
> > http://cgit.freedesktop.org/libreoffice/core/tree/ucb/source/ucp/webdav/webdavcontent.cxx#n3190
> > but the ContentProperties::UCBNamesToDAVNames function does not contain
> > a mapping to a DAV property name, in contrast to the other properties
> > added in Content::getResourceType:
> > http://cgit.freedesktop.org/libreoffice/core/tree/ucb/source/ucp/webdav/ContentProperties.cxx#n221
> > so... is there some equivalent of "is-read-only" in WebDAV?
> > if not then maybe it was simply added there in error...
> Not to my knowledge.  At least RFC2518 doesn't mention one, and I
> haven't met a 'common' one.  Clients / server frequently implement
> something custom for that [sadly].  Which why I'm happy to add support
> for that property to my server.   But there is no documentation if it
> should be YES/NO, True/False, 0/1, etc...

???
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120502/02fc80a6/attachment.pgp>


More information about the LibreOffice mailing list